projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c0e5d85
)
Merge pull request #2463 from rzhxeo/resume
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 28 Feb 2014 11:30:34 +0000
(12:30 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 28 Feb 2014 11:30:34 +0000
(12:30 +0100)
Set resume_len to 0 if download is restarted
youtube_dl/downloader/http.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 748f9f3adfe0555024cce272b8eb872c55558d6c..240ecb606e5ee4b76599f2e380b6ea30d767c5da 100644
(file)
--- a/
youtube_dl/downloader/http.py
+++ b/
youtube_dl/downloader/http.py
@@
-85,6
+85,7
@@
class HttpFD(FileDownloader):
else:
# The length does not match, we start the download over
self.report_unable_to_resume()
+ resume_len = 0
open_mode = 'wb'
break
# Retry