mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-21 00:25:42 +07:00
[downloader/http] Report unable to resume
This commit is contained in:
@@ -66,6 +66,7 @@ def real_download(self, filename, info_dict):
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user