youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 106d091e80f609802d3f6dcc3512525458900042
parent f83ae7816b64ff23fbef602d7ade3fd00b57e5aa
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Sat, 11 Dec 2010 11:32:13 +0100

Do not use 0% as the starting point in resumed downloads (closes #40)

Diffstat:
Myoutube-dl | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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: