1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 16:40:58 +01:00

Merge pull request #2463 from rzhxeo/resume

Set resume_len to 0 if download is restarted
This commit is contained in:
Philipp Hagemeister 2014-02-28 12:30:34 +01:00
commit fbcf3e416d

View File

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