From d7ff06a0f3716df6a9793f437f63af800e95ec66 Mon Sep 17 00:00:00 2001 From: dundua Date: Thu, 12 Nov 2015 01:13:00 -0800 Subject: [PATCH] Update YoutubeDL.py Possible fix for issue https://github.com/rg3/youtube-dl/issues/7022 --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 1783ce01b..0df13be4e 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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."""