1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

Set resume_len to 0 if download is restarted

This commit is contained in:
rzhxeo 2014-02-26 02:47:27 +01:00
parent a83a3139d1
commit 60daf7f0bb

View File

@ -85,6 +85,7 @@ def real_download(self, filename, info_dict):
else:
# The length does not match, we start the download over
self.report_unable_to_resume()
resume_len = 0
open_mode = 'wb'
break
# Retry