]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Set resume_len to 0 if download is restarted
authorrzhxeo <rzhxeot7z81b4700@mailcatch.com>
Wed, 26 Feb 2014 01:47:27 +0000 (02:47 +0100)
committerrzhxeo <rzhxeot7z81b4700@mailcatch.com>
Wed, 26 Feb 2014 01:47:27 +0000 (02:47 +0100)
youtube_dl/downloader/http.py

index 748f9f3adfe0555024cce272b8eb872c55558d6c..240ecb606e5ee4b76599f2e380b6ea30d767c5da 100644 (file)
@@ -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