mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-04 15:52:52 +08:00
Update YoutubeDL.py
Possible fix for issue https://github.com/rg3/youtube-dl/issues/7022
This commit is contained in:
parent
fcd817a326
commit
d7ff06a0f3
@ -1334,6 +1334,7 @@ class YoutubeDL(object):
|
||||
new_info = dict(info_dict)
|
||||
new_info.update(format)
|
||||
self.process_info(new_info)
|
||||
self.record_download_archive(info_dict)
|
||||
# We update the info dict with the best quality format (backwards compatibility)
|
||||
info_dict.update(formats_to_download[-1])
|
||||
return info_dict
|
||||
@ -1649,7 +1650,6 @@ class YoutubeDL(object):
|
||||
except (PostProcessingError) as err:
|
||||
self.report_error('postprocessing: %s' % str(err))
|
||||
return
|
||||
self.record_download_archive(info_dict)
|
||||
|
||||
def download(self, url_list):
|
||||
"""Download a given list of URLs."""
|
||||
|
Loading…
Reference in New Issue
Block a user