Skip to content

Commit

Permalink
Allow escaped , in --extractor-args
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Dec 30, 2021
1 parent 96f13f0 commit 042931a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,8 @@ def _dict_from_options_callback(
'--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'(?<!\\),', vals)])
extractor.add_option(
'--extractor-args',
metavar='KEY:ARGS', dest='extractor_args', default={}, type='str',
Expand Down

0 comments on commit 042931a

Please sign in to comment.