summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-01-08 16:15:20 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-01-08 16:15:20 +0100
commit70af3439e92483e18d0e710362072bc2616b20c2 (patch)
tree16d337a218167f10d19f875f78a235f11b76f039
parentbb3c20965e8e816b8918ca085e0b7dae2b52a322 (diff)
downloadyoutube-dl-70af3439e92483e18d0e710362072bc2616b20c2.tar.gz
youtube-dl-70af3439e92483e18d0e710362072bc2616b20c2.tar.xz
youtube-dl-70af3439e92483e18d0e710362072bc2616b20c2.zip
[hls] Fix the program name when reporting the file size
-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,