aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-04-24 17:21:20 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-04-24 18:28:30 +0530
commit78fde6e3398ff11e5d383a66b28664badeab5180 (patch)
tree90c3b10013643a74227e4a4c2ff570051bc04b0b /yt_dlp/options.py
parent80b732b7a9585b2a61e456dc0d2d014a439cbaee (diff)
downloadhypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.tar.lz
hypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.tar.xz
hypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.zip
[outtmpl] Allow `\n` in replacements and default.
Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510055357 Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510363645
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 84aeda7f1..d334a9caa 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -243,7 +243,7 @@ def create_parser():
if multiple_keys:
allowed_keys = fr'({allowed_keys})(,({allowed_keys}))*'
mobj = re.match(
- fr'(?i)(?P<keys>{allowed_keys}){delimiter}(?P<val>.*)$',
+ fr'(?is)(?P<keys>{allowed_keys}){delimiter}(?P<val>.*)$',
value[0] if multiple_args else value)
if mobj is not None:
keys, val = mobj.group('keys').split(','), mobj.group('val')