diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index b7e08de4b..f9ceb5eb4 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -23,7 +23,6 @@ encodeFilename, filter_dict, float_or_none, - is_iterable_like, is_outdated_version, orderedSet, prepend_extension, @@ -742,9 +741,7 @@ def add(meta_list, info_list=None): info[key] for key in [f'{meta_prefix}_'] + list(variadic(info_list or meta_list)) if info.get(key) is not None), None) if value not in ('', None): - if is_iterable_like(value): - value = ', '.join(value) - value = str(value) + value = ', '.join(map(str, variadic(value))) value = value.replace('\0', '') # nul character cannot be passed in command line metadata['common'].update({meta_f: value for meta_f in variadic(meta_list)})