projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83ae78
)
Do not use 0% as the starting point in resumed downloads (closes #40)
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sat, 11 Dec 2010 10:32:13 +0000
(11:32 +0100)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sat, 11 Dec 2010 10:32:33 +0000
(11:32 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index a8e3bd36cd32d6c50bbc4cc686c32496590d2fa9..22b9eba17986e8ab08f92c809c871102a1adcd58 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-606,8
+606,10
@@
class FileDownloader(object):
return False
data_len = data.info().get('Content-length', None)
+ if data_len is not None:
+ data_len = long(data_len) + resume_len
data_len_str = self.format_bytes(data_len)
- byte_counter = 0
+ byte_counter = 0
+ resume_len
block_size = 1024
start = time.time()
while True: