浏览代码

[downloader/http] Report unable to resume

Sergey M․ 10 年之前
父节点
当前提交
10eaa8ef1d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/downloader/http.py

+ 1 - 0
youtube_dl/downloader/http.py

@@ -66,6 +66,7 @@ class HttpFD(FileDownloader):
                     if content_range_m and resume_len == int(content_range_m.group(1)):
                     if content_range_m and resume_len == int(content_range_m.group(1)):
                         break
                         break
                     # Content-Range is invalid - wipe the file and do entire redownload
                     # Content-Range is invalid - wipe the file and do entire redownload
+                    self.report_unable_to_resume()
                     resume_len = 0
                     resume_len = 0
                     open_mode = 'wb'
                     open_mode = 'wb'
                 break
                 break