diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-28 12:30:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-28 12:30:34 +0100 |
commit | fbcf3e416db224e346d58fb0dd74461809eb9b78 (patch) | |
tree | 05e472b8abf6f0415445daae3c1df10a7ead0aec | |
parent | c0e5d856314bf5fb7162902c53c9df0be1a315c0 (diff) | |
parent | 60daf7f0bb527e3d23b646298bf5876de490f5d4 (diff) |
Merge pull request #2463 from rzhxeo/resume
Set resume_len to 0 if download is restarted
-rw-r--r-- | youtube_dl/downloader/http.py | 1 |
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 |