A feature-rich command-line audio/video downloader
Do not use 0% as the starting point in resumed downloads (closes #40)
Ricardo Garcia106d091e80f6
diff --git a/youtube-dl b/youtube-dlindex a8e3bd36cd..22b9eba179 100755--- a/youtube-dl+++ b/youtube-dl@@ -606,8 +606,10 @@ class FileDownloader(object):return Falsedata_len = data.info().get('Content-length', None)+ if data_len is not None:+ data_len = long(data_len) + resume_lendata_len_str = self.format_bytes(data_len)- byte_counter = 0+ byte_counter = 0 + resume_lenblock_size = 1024start = time.time()while True: