From f3fe2355eef7d969c6cbed1694668202ccf2f682 Mon Sep 17 00:00:00 2001 From: 7x11x13 Date: Sat, 9 Nov 2024 20:43:25 -0500 Subject: [PATCH] Don't attempt to copy cover art for .opus and .wav files --- yt_dlp/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 164c46d14..7e815f702 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -677,7 +677,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor): @staticmethod def _options(target_ext): - audio_only = target_ext == 'm4a' + audio_only = target_ext in ('opus', 'wav') yield from FFmpegPostProcessor.stream_copy_opts(not audio_only) if audio_only: yield from ('-vn', '-acodec', 'copy')