]> jfr.im git - yt-dlp.git/commitdiff
[pp/EmbedThumbnail] Support `m4v` (#7583)
authorNeurognostic <redacted>
Thu, 13 Jul 2023 20:39:21 +0000 (16:39 -0400)
committerGitHub <redacted>
Thu, 13 Jul 2023 20:39:21 +0000 (02:09 +0530)
Authored by: Neurognostic

yt_dlp/postprocessor/embedthumbnail.py

index 88a767132acd7613967af0cd39828ed0da19e3e8..d7be0b398e469bb687f796a6cdaf719352f466f3 100644 (file)
@@ -114,7 +114,7 @@ def run(self, info):
             self._report_run('ffmpeg', filename)
             self.run_ffmpeg(filename, temp_filename, options)
 
-        elif info['ext'] in ['m4a', 'mp4', 'mov']:
+        elif info['ext'] in ['m4a', 'mp4', 'm4v', 'mov']:
             prefer_atomicparsley = 'embed-thumbnail-atomicparsley' in self.get_param('compat_opts', [])
             # Method 1: Use mutagen
             if not mutagen or prefer_atomicparsley:
@@ -213,7 +213,7 @@ def run(self, info):
             temp_filename = filename
 
         else:
-            raise EmbedThumbnailPPError('Supported filetypes for thumbnail embedding are: mp3, mkv/mka, ogg/opus/flac, m4a/mp4/mov')
+            raise EmbedThumbnailPPError('Supported filetypes for thumbnail embedding are: mp3, mkv/mka, ogg/opus/flac, m4a/mp4/m4v/mov')
 
         if success and temp_filename != filename:
             os.replace(temp_filename, filename)