commit: 9e29ef13a378769c19ccec200aba377ad504fe8f
parent eaaaaec042f8e6afa8f8ec6a2a8b137943f802df
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date: Wed, 29 Jun 2016 14:56:05 +0200
[options] Accept quoted string across multiple lines (#9940)
Like:
-f "
bestvideo+bestaudio/
best
"
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git 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