From 22fba53fbd903cd42b0f4ef24c539a4f818fd6e9 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 7 Apr 2022 15:46:53 +0530 Subject: [PATCH] [FfmpegMetadata] Write id3v1 tags --- yt_dlp/postprocessor/ffmpeg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 643290286..27d06cbde 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -769,6 +769,9 @@ def add(meta_list, info_list=None): if value is not None and mobj: 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(): yield ('-metadata', f'{name}={value}')