YoutubeSearchIE: return a playlist (related #838)

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-05-12 20:53:37 +02:00
parent fb2f83360c
commit 98d4a4e6bc

View file

@ -1401,7 +1401,7 @@ class YoutubeSearchIE(InfoExtractor):
if len(video_ids) > n: if len(video_ids) > n:
video_ids = video_ids[:n] video_ids = video_ids[:n]
videos = [self.url_result('http://www.youtube.com/watch?v=%s' % id, 'Youtube') for id in video_ids] videos = [self.url_result('http://www.youtube.com/watch?v=%s' % id, 'Youtube') for id in video_ids]
return videos return self.playlist_result(videos, query)
class GoogleSearchIE(InfoExtractor): class GoogleSearchIE(InfoExtractor):