mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-24 14:03:20 +01:00
Set resume_len to 0 if download is restarted
This commit is contained in:
parent
a83a3139d1
commit
60daf7f0bb
@ -85,6 +85,7 @@ class HttpFD(FileDownloader):
|
|||||||
else:
|
else:
|
||||||
# The length does not match, we start the download over
|
# The length does not match, we start the download over
|
||||||
self.report_unable_to_resume()
|
self.report_unable_to_resume()
|
||||||
|
resume_len = 0
|
||||||
open_mode = 'wb'
|
open_mode = 'wb'
|
||||||
break
|
break
|
||||||
# Retry
|
# Retry
|
||||||
|
Loading…
Reference in New Issue
Block a user