mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-23 08:12:28 +00:00
[downloader/http] Report unable to resume
This commit is contained in:
parent
c3124c3085
commit
10eaa8ef1d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue