aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-04 12:14:38 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-03-04 12:14:38 +0100
commitf28fe66970370b5df649aa457e52cf99f6a49905 (patch)
tree6b710bb81b0fc7812c1d828ae9c17cbecec4f798 /youtube_dl/downloader/http.py
parent123397317c9906bf53a23b6b426db0b08c70da32 (diff)
downloadyoutube-dl-f28fe66970370b5df649aa457e52cf99f6a49905.zip
youtube-dl-f28fe66970370b5df649aa457e52cf99f6a49905.tar.gz
youtube-dl-f28fe66970370b5df649aa457e52cf99f6a49905.tar.bz2
[downloader/http] Add missing fields for _hook_progress call
It would fail if you run 'youtube-dl --no-part URL' a second time when the file has already been downloaded. (Reported in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1195779)
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 5e99827..4047d71 100644
--- a/youtube_dl/downloader/http.py
+++ b/youtube_dl/downloader/http.py
@@ -92,6 +92,8 @@ class HttpFD(FileDownloader):
self._hook_progress({
'filename': filename,
'status': 'finished',
+ 'downloaded_bytes': resume_len,
+ 'total_bytes': resume_len,
})
return True
else: