aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroKev <AndroKev@users.noreply.github.com>2014-12-17 13:05:19 +0100
committerAndroKev <AndroKev@users.noreply.github.com>2014-12-17 13:05:19 +0100
commitc33bcf2051cac1580d5161a188acc3efd54734ea (patch)
tree9d7aa2612a1b2db0afb3276417bb4667c3205ea2
parent7642c08763cda0cadeb812393ed3d1b2c8ecb99a (diff)
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
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
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."""