From 9e29ef13a378769c19ccec200aba377ad504fe8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Wed, 29 Jun 2016 14:56:05 +0200 Subject: [PATCH] [options] Accept quoted string across multiple lines (#9940) Like: -f " bestvideo+bestaudio/ best " --- youtube_dl/options.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 99ce4131fd..c9033e3cb2 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -26,9 +26,7 @@ def _readOptions(filename_bytes, default=[]): 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