Browse Source
[options] Accept quoted string across multiple lines (#9940)
Like:
-f "
bestvideo+bestaudio/
best
"
master
Jaime Marquínez Ferrándiz
8 years ago
committed by
Sergey M․
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
3 deletions
-
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 |
|
|
|