From 1bbfed8e4d3abaf3d09e21bdfa017f44904ce7ce Mon Sep 17 00:00:00 2001 From: tcely Date: Thu, 30 Jan 2025 14:40:03 -0500 Subject: [PATCH] Don't embed spaces in keys --- tubesync/sync/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py index f6a83b61..9a81093a 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py @@ -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()