Преглед на файлове

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:
                             # The length does not match, we start the download over
                             self.report_unable_to_resume()
+                            resume_len = 0
                             open_mode = 'wb'
                             break
             # Retry