]> jfr.im git - yt-dlp.git/commitdiff
Fix for embedding thumbnail in mp3 by pauldubois98
authorpukkandan <redacted>
Mon, 21 Sep 2020 15:59:49 +0000 (21:29 +0530)
committerpukkandan <redacted>
Sun, 13 Dec 2020 14:35:03 +0000 (20:05 +0530)
Authored-by: Paul Dubois <redacted>
youtube_dlc/postprocessor/embedthumbnail.py

index e9f2161a01e06a0c7b6ffc28c80aaa70ec69bb6e..f73f93a58bef31ff6675a8fccda1dc90dc1dde0f 100644 (file)
@@ -76,8 +76,8 @@ def is_webp(path):
 
         if info['ext'] == 'mp3':
             options = [
-                '-c', 'copy', '-map', '0', '-map', '1',
-                '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']
+                '-c', 'copy', '-map', '0:0', '-map', '1:0', '-id3v2_version', '3', 
+                '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (front)"']
 
             self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename)