mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 21:03:18 +00:00
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
This commit is contained in:
parent
7642c08763
commit
c33bcf2051
|
@ -1145,12 +1145,12 @@ def dl(name, info):
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
try:
|
try:
|
||||||
|
self.record_download_archive(info_dict)
|
||||||
self.post_process(filename, info_dict)
|
self.post_process(filename, info_dict)
|
||||||
except (PostProcessingError) as err:
|
except (PostProcessingError) as err:
|
||||||
self.report_error('postprocessing: %s' % str(err))
|
self.report_error('postprocessing: %s' % str(err))
|
||||||
return
|
return
|
||||||
|
|
||||||
self.record_download_archive(info_dict)
|
|
||||||
|
|
||||||
def download(self, url_list):
|
def download(self, url_list):
|
||||||
"""Download a given list of URLs."""
|
"""Download a given list of URLs."""
|
||||||
|
|
Loading…
Reference in a new issue