mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 18:17:17 -05:00
[FfmpegMetadata] Write id3v1 tags
This commit is contained in:
parent
61d3665d9d
commit
22fba53fbd
@ -769,6 +769,9 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
|||||||
if value is not None and mobj:
|
if value is not None and mobj:
|
||||||
metadata[mobj.group('i') or 'common'][mobj.group('key')] = value
|
metadata[mobj.group('i') or 'common'][mobj.group('key')] = value
|
||||||
|
|
||||||
|
# Write id3v1 metadata also since Windows Explorer can't handle id3v2 tags
|
||||||
|
yield ('-write_id3v1', '1')
|
||||||
|
|
||||||
for name, value in metadata['common'].items():
|
for name, value in metadata['common'].items():
|
||||||
yield ('-metadata', f'{name}={value}')
|
yield ('-metadata', f'{name}={value}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user