diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-02-01 23:54:38 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-02-01 23:54:38 +0600 |
commit | 4a3da4ebdb1de5e35b47176822ab9ed3b2762c3f (patch) | |
tree | 30a81af8981f13d130f941b154d5ffcea8c8921a /youtube_dl/downloader/hls.py | |
parent | 027008b14ebe3d41ac7b9940ab73eaed120dab5c (diff) |
[hls] Simplify
Diffstat (limited to 'youtube_dl/downloader/hls.py')
-rw-r--r-- | youtube_dl/downloader/hls.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index b642786cc..e527ee425 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -29,15 +29,15 @@ class HlsFD(FileDownloader): return False ffpp.check_version() - args = [encodeArgument(opt) for opt in ('-y', '-i', url, '-f', 'mp4', '-c', 'copy', '-bsf:a', 'aac_adtstoasc')] + args = [ + encodeArgument(opt) + for opt in (program, '-y', '-i', url, '-f', 'mp4', '-c', 'copy', '-bsf:a', 'aac_adtstoasc')] args.append(encodeFilename(tmpfilename, True)) - cmd = [encodeArgument(program)] + args - - retval = subprocess.call(cmd) + retval = subprocess.call(args) if retval == 0: fsize = os.path.getsize(encodeFilename(tmpfilename)) - self.to_screen('\r[%s] %s bytes' % (cmd[0], fsize)) + self.to_screen('\r[%s] %s bytes' % (args[0], fsize)) self.try_rename(tmpfilename, filename) self._hook_progress({ 'downloaded_bytes': fsize, |