Просмотр исходного кода

Set resume_len to 0 if download is restarted

rzhxeo 11 лет назад
Родитель
Сommit
60daf7f0bb
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