]> git.bitcoin.ninja Git - youtube-dl/commitdiff
YoutubeSearchIE: return a playlist (related #838)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 12 May 2013 18:53:37 +0000 (20:53 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 12 May 2013 18:53:37 +0000 (20:53 +0200)
youtube_dl/InfoExtractors.py

index e4b6c01ab21aa4b12879c87ba4815e506cc4ee6f..6a42ed09093f022b1f37eef0c85cffb9cd93d424 100755 (executable)
@@ -1401,7 +1401,7 @@ class YoutubeSearchIE(InfoExtractor):
         if len(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]
-        return videos
+        return self.playlist_result(videos, query)
 
 
 class GoogleSearchIE(InfoExtractor):