Apply suggestions from code review

pull/8918/head
pukkandan 2 years ago committed by GitHub
parent 698199b0e8
commit a691696290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,6 @@ from ..utils import (
encodeFilename, encodeFilename,
filter_dict, filter_dict,
float_or_none, float_or_none,
is_iterable_like,
is_outdated_version, is_outdated_version,
orderedSet, orderedSet,
prepend_extension, prepend_extension,
@ -742,9 +741,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
info[key] for key in [f'{meta_prefix}_'] + list(variadic(info_list or meta_list)) info[key] for key in [f'{meta_prefix}_'] + list(variadic(info_list or meta_list))
if info.get(key) is not None), None) if info.get(key) is not None), None)
if value not in ('', None): if value not in ('', None):
if is_iterable_like(value): value = ', '.join(map(str, variadic(value)))
value = ', '.join(value)
value = str(value)
value = value.replace('\0', '') # nul character cannot be passed in command line 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)}) metadata['common'].update({meta_f: value for meta_f in variadic(meta_list)})

Loading…
Cancel
Save