mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
parent
14294236bf
commit
d39919c03e
1 changed files with 3 additions and 1 deletions
|
@ -492,8 +492,10 @@ def process_info(self, info_dict):
|
|||
if info_dict.get('_type','video') == 'playlist':
|
||||
playlist = info_dict.get('title', None) or info_dict.get('id', None)
|
||||
self.to_screen(u'[download] Downloading playlist: %s' % playlist)
|
||||
for video in info_dict['entries']:
|
||||
n_videos = len(info_dict['entries'])
|
||||
for i,video in enumerate(info_dict['entries'],1):
|
||||
video['playlist'] = playlist
|
||||
self.to_screen(u'[download] Downloading video #%s of %s' %(i, n_videos))
|
||||
self.process_info(video)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue