diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2016-06-29 14:56:05 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-07-01 03:30:31 +0700 |
commit | 9e29ef13a378769c19ccec200aba377ad504fe8f (patch) | |
tree | 269af29049d98acee0458c7194370078b742e5a6 /youtube_dl | |
parent | eaaaaec042f8e6afa8f8ec6a2a8b137943f802df (diff) |
[options] Accept quoted string across multiple lines (#9940)
Like:
-f "
bestvideo+bestaudio/
best
"
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/options.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 99ce4131f..c9033e3cb 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -26,9 +26,7 @@ def parseOpts(overrideArguments=None): except IOError: return default # silently skip if file is not present try: - res = [] - for l in optionf: - res += compat_shlex_split(l, comments=True) + res = compat_shlex_split(optionf.read(), comments=True) finally: optionf.close() return res |