mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
YoutubeSearchIE: return a playlist (related #838)
This commit is contained in:
parent
fb2f83360c
commit
98d4a4e6bc
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ def _get_n_results(self, query, n):
|
|||
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):
|
||||
|
|
Loading…
Reference in a new issue