1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-27 16:57:53 +01:00

[downloader/http] Report unable to resume

This commit is contained in:
Sergey M․ 2015-08-03 02:25:40 +06:00
parent c3124c3085
commit 10eaa8ef1d

View File

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