Don't embed spaces in keys

This commit is contained in:
tcely 2025-01-30 14:40:03 -05:00 committed by GitHub
parent 470dbf426e
commit 1bbfed8e4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,7 +191,7 @@ def download_media(
# We fake up this option to make it easier for the user to add post processors.
postprocessors = opts.get('add_postprocessors', pp_opts.add_postprocessors)
if isinstance(postprocessors, str):
# NAME1[:ARGS],NAME2[:ARGS]
# NAME1[:ARGS], NAME2[:ARGS]
# ARGS are a semicolon ";" delimited list of NAME=VALUE
#
# This means that "," cannot be present in NAME or VALUE.
@ -206,7 +206,7 @@ def download_media(
postprocessors = list(
dict(
_postprocessor_opts_parser( *val.split(':', 1) )
) for val in postprocessors.split(',')
) for val in map(str.strip, postprocessors.split(','))
)
if not isinstance(postprocessors, list):
postprocessors = list()