mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[FFmpegMetadataPP] Remove \0
from metadata
This commit is contained in:
parent
fcdb8d6e88
commit
5a727063c5
@ -737,6 +737,7 @@ def add(meta_list, info_list=None):
|
|||||||
str(info[key]) for key in [f'{meta_prefix}_'] + list(variadic(info_list or meta_list))
|
str(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):
|
||||||
|
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)})
|
||||||
|
|
||||||
# See [1-4] for some info on media metadata/metadata supported
|
# See [1-4] for some info on media metadata/metadata supported
|
||||||
|
Loading…
Reference in New Issue
Block a user