about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-02-28 12:30:34 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-02-28 12:30:34 +0100
commitfbcf3e416db224e346d58fb0dd74461809eb9b78 (patch)
tree05e472b8abf6f0415445daae3c1df10a7ead0aec
parentc0e5d856314bf5fb7162902c53c9df0be1a315c0 (diff)
parent60daf7f0bb527e3d23b646298bf5876de490f5d4 (diff)
downloadyoutube-dl-fbcf3e416db224e346d58fb0dd74461809eb9b78.tar.gz
youtube-dl-fbcf3e416db224e346d58fb0dd74461809eb9b78.tar.xz
youtube-dl-fbcf3e416db224e346d58fb0dd74461809eb9b78.zip
Merge pull request #2463 from rzhxeo/resume
Set resume_len to 0 if download is restarted
-rw-r--r--youtube_dl/downloader/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 748f9f3ad..240ecb606 100644
--- 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