projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3124c3
)
[downloader/http] Report unable to resume
author
Sergey M․
<dstftw@gmail.com>
Sun, 2 Aug 2015 20:25:40 +0000
(
02:25
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 2 Aug 2015 20:25:40 +0000
(
02:25
+0600)
youtube_dl/downloader/http.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 0862e90bbb0a5bbc5f6414e6907cdc913d0944e6..2f8490f023cf681c0c6767ab50462295cdc21645 100644
(file)
--- a/
youtube_dl/downloader/http.py
+++ b/
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)):
break
# Content-Range is invalid - wipe the file and do entire redownload
+ self.report_unable_to_resume()
resume_len = 0
open_mode = 'wb'
break