Set resume_len to 0 if download is restarted
[youtube-dl] / 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