[hls] Fix the program name when reporting the file size
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 8 Jan 2014 15:15:20 +0000 (16:15 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 8 Jan 2014 15:15:20 +0000 (16:15 +0100)
youtube_dl/downloader/hls.py

index 51e8c4778d47792e61a1bd3a11ab43dc2b237d63..fa983462babeb6a6bccc2f22992411dd6aea8a5b 100644 (file)
@@ -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,