commit fbcf3e416db224e346d58fb0dd74461809eb9b78
parent c0e5d856314bf5fb7162902c53c9df0be1a315c0
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Fri, 28 Feb 2014 12:30:34 +0100
Merge pull request #2463 from rzhxeo/resume
Set resume_len to 0 if download is restarted
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
@@ -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