From 042931a50733d621c02d3e7127195bef574df213 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 30 Dec 2021 08:15:07 +0530 Subject: [PATCH] Allow escaped `,` in `--extractor-args` Closes #2152 --- yt_dlp/options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 4f51c37c0..83531497c 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -1572,7 +1572,8 @@ def parseOpts(overrideArguments=None): '--no-hls-split-discontinuity', dest='hls_split_discontinuity', action='store_false', help='Do not split HLS playlists to different formats at discontinuities such as ad breaks (default)') - _extractor_arg_parser = lambda key, vals='': (key.strip().lower().replace('-', '_'), [val.strip() for val in vals.split(',')]) + _extractor_arg_parser = lambda key, vals='': (key.strip().lower().replace('-', '_'), [ + val.replace(r'\,', ',').strip() for val in re.split(r'(?