From c33bcf2051cac1580d5161a188acc3efd54734ea Mon Sep 17 00:00:00 2001 From: AndroKev Date: Wed, 17 Dec 2014 13:05:19 +0100 Subject: [PATCH 1/2] only add video-id to archive, when successful Example: no space left--> youtube-dl adds the id to archive, but the video isn't fully downloaded --- 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 8a6bcd51c..82acfe282 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1145,12 +1145,12 @@ class YoutubeDL(object): if success: try: + self.record_download_archive(info_dict) self.post_process(filename, info_dict) 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.""" From cd58dc3e56b2efa955bda6ced7105df2bb790e63 Mon Sep 17 00:00:00 2001 From: AndroKev Date: Wed, 17 Dec 2014 13:21:22 +0100 Subject: [PATCH 2/2] Update YoutubeDL.py --- 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 82acfe282..30f1cd1ee 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1145,11 +1145,11 @@ class YoutubeDL(object): if success: try: - self.record_download_archive(info_dict) self.post_process(filename, info_dict) except (PostProcessingError) as err: self.report_error('postprocessing: %s' % str(err)) return + self.record_download_archive(info_dict) def download(self, url_list):