瀏覽代碼

Merge pull request #2463 from rzhxeo/resume

Set resume_len to 0 if download is restarted
Philipp Hagemeister 11 年之前
父節點
當前提交
fbcf3e416d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/downloader/http.py

+ 1 - 0
youtube_dl/downloader/http.py

@@ -85,6 +85,7 @@ class HttpFD(FileDownloader):
                         else:
                         else:
                             # The length does not match, we start the download over
                             # The length does not match, we start the download over
                             self.report_unable_to_resume()
                             self.report_unable_to_resume()
+                            resume_len = 0
                             open_mode = 'wb'
                             open_mode = 'wb'
                             break
                             break
             # Retry
             # Retry