projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d0fe75
)
[downloader/external] Add missing import and PEP8
author
Sergey M․
<dstftw@gmail.com>
Sun, 5 Mar 2017 03:24:29 +0000
(10:24 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 5 Mar 2017 03:24:29 +0000
(10:24 +0700)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index 127a92d20054633ca23b6a7771009812041e603c..e13cf547d10cbf472440c9f23d010a586b2c453c 100644
(file)
--- a/
youtube_dl/downloader/external.py
+++ b/
youtube_dl/downloader/external.py
@@
-6,7
+6,10
@@
import sys
import re
from .common import FileDownloader
import re
from .common import FileDownloader
-from ..compat import compat_setenv
+from ..compat import (
+ compat_setenv,
+ compat_str,
+)
from ..postprocessor.ffmpeg import FFmpegPostProcessor, EXT_TO_OUT_FORMATS
from ..utils import (
cli_option,
from ..postprocessor.ffmpeg import FFmpegPostProcessor, EXT_TO_OUT_FORMATS
from ..utils import (
cli_option,
@@
-272,7
+275,7
@@
class FFmpegFD(ExternalFD):
args += ['-i', url, '-c', 'copy']
if self.params.get('test', False):
args += ['-i', url, '-c', 'copy']
if self.params.get('test', False):
- args += ['-fs', compat_str(self._TEST_FILE_SIZE)]
# -fs limit_size (output), expressed in bytes
+ args += ['-fs', compat_str(self._TEST_FILE_SIZE)]
if protocol in ('m3u8', 'm3u8_native'):
if self.params.get('hls_use_mpegts', False) or tmpfilename == '-':
if protocol in ('m3u8', 'm3u8_native'):
if self.params.get('hls_use_mpegts', False) or tmpfilename == '-':