mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-31 12:32:27 +01:00
parent
61e9d9268c
commit
be72c62480
1 changed files with 3 additions and 3 deletions
|
@ -2552,7 +2552,6 @@ class YoutubeDL(object):
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
|
|
||||||
info_dict['requested_downloads'] = formats_to_download
|
|
||||||
best_format = formats_to_download[-1] if formats_to_download else {}
|
best_format = formats_to_download[-1] if formats_to_download else {}
|
||||||
if not formats_to_download:
|
if not formats_to_download:
|
||||||
if not self.params.get('ignore_no_formats_error'):
|
if not self.params.get('ignore_no_formats_error'):
|
||||||
|
@ -2589,13 +2588,14 @@ class YoutubeDL(object):
|
||||||
assert write_archive.issubset({True, False, 'ignore'})
|
assert write_archive.issubset({True, False, 'ignore'})
|
||||||
if True in write_archive and False not in write_archive:
|
if True in write_archive and False not in write_archive:
|
||||||
self.record_download_archive(info_dict)
|
self.record_download_archive(info_dict)
|
||||||
|
|
||||||
|
info_dict['requested_downloads'] = formats_to_download
|
||||||
for pp in self._pps['after_video']:
|
for pp in self._pps['after_video']:
|
||||||
info_dict = self.run_pp(pp, info_dict)
|
info_dict = self.run_pp(pp, info_dict)
|
||||||
if max_downloads_reached:
|
if max_downloads_reached:
|
||||||
raise MaxDownloadsReached()
|
raise MaxDownloadsReached()
|
||||||
|
|
||||||
# We update the info dict with the selected best quality format (backwards compatibility)
|
# We update the info dict with the selected best quality format (backwards compatibility)
|
||||||
if formats_to_download:
|
|
||||||
info_dict.update(best_format)
|
info_dict.update(best_format)
|
||||||
return info_dict
|
return info_dict
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue