summary refs log tree commit diff
diff options
context:
space:
mode:
authorrzhxeo <rzhxeot7z81b4700@mailcatch.com>2014-02-26 02:47:27 +0100
committerrzhxeo <rzhxeot7z81b4700@mailcatch.com>2014-02-26 02:47:27 +0100
commit60daf7f0bb527e3d23b646298bf5876de490f5d4 (patch)
treec9260630d3082ee91b0f7d5146872f1bc4c5ea35
parenta83a3139d1b42b5ca0c947c8e083ec1877622d16 (diff)
downloadyoutube-dl-60daf7f0bb527e3d23b646298bf5876de490f5d4.tar.gz
youtube-dl-60daf7f0bb527e3d23b646298bf5876de490f5d4.tar.xz
youtube-dl-60daf7f0bb527e3d23b646298bf5876de490f5d4.zip
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