From: Philipp Hagemeister Date: Fri, 28 Feb 2014 11:30:34 +0000 (+0100) Subject: Merge pull request #2463 from rzhxeo/resume X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=fbcf3e416db224e346d58fb0dd74461809eb9b78;hp=c0e5d856314bf5fb7162902c53c9df0be1a315c0;p=youtube-dl Merge pull request #2463 from rzhxeo/resume Set resume_len to 0 if download is restarted --- 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