diff options
author | Neurognostic <donovan@tremura.email> | 2023-07-13 16:39:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 02:09:21 +0530 |
commit | 8a4cd12c8f8e93292e3e95200b9d17a3af39624c (patch) | |
tree | a2237a245f2ec13c60697e3b11bb0f801343d43f | |
parent | 2cfe221fbbe46faa3f46552c08d947a51f424903 (diff) | |
download | hypervideo-pre-8a4cd12c8f8e93292e3e95200b9d17a3af39624c.tar.lz hypervideo-pre-8a4cd12c8f8e93292e3e95200b9d17a3af39624c.tar.xz hypervideo-pre-8a4cd12c8f8e93292e3e95200b9d17a3af39624c.zip |
[pp/EmbedThumbnail] Support `m4v` (#7583)
Authored by: Neurognostic
-rw-r--r-- | yt_dlp/postprocessor/embedthumbnail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index 88a767132..d7be0b398 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -114,7 +114,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): 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 @@ class EmbedThumbnailPP(FFmpegPostProcessor): 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) |