projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a83a313
)
Set resume_len to 0 if download is restarted
author
rzhxeo
<rzhxeot7z81b4700@mailcatch.com>
Wed, 26 Feb 2014 01:47:27 +0000
(
02:47
+0100)
committer
rzhxeo
<rzhxeot7z81b4700@mailcatch.com>
Wed, 26 Feb 2014 01:47:27 +0000
(
02:47
+0100)
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