summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2014-01-08 16:15:20 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2014-01-08 16:15:20 +0100
commit70af3439e92483e18d0e710362072bc2616b20c2 (patch)
tree16d337a218167f10d19f875f78a235f11b76f039 /youtube_dl/downloader
parentbb3c20965e8e816b8918ca085e0b7dae2b52a322 (diff)
downloadyoutube-dl-70af3439e92483e18d0e710362072bc2616b20c2.tar.gz
youtube-dl-70af3439e92483e18d0e710362072bc2616b20c2.zip
[hls] Fix the program name when reporting the file size
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/hls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 51e8c4778..fa983462b 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -29,7 +29,7 @@ class HlsFD(FileDownloader):
retval = subprocess.call(cmd)
if retval == 0:
fsize = os.path.getsize(encodeFilename(tmpfilename))
- self.to_screen(u'\r[%s] %s bytes' % (args[0], fsize))
+ self.to_screen(u'\r[%s] %s bytes' % (cmd[0], fsize))
self.try_rename(tmpfilename, filename)
self._hook_progress({
'downloaded_bytes': fsize,