From d80ca5deaa46db6e498399bb04a72a4c10ee8e22 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 3 Jan 2023 08:05:45 +0530 Subject: [PATCH] [utils] `mimetype2ext`: weba is not standard Fix bug in fbb73833067ba742459729809679a62f34b3e41e, 2647c933b8ed22f95dd8e9866c4db031867a1bc8 Closes #5935 --- yt_dlp/postprocessor/ffmpeg.py | 1 + yt_dlp/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 9b70d749f..5acd75376 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -44,6 +44,7 @@ 'ts': 'mpegts', 'wma': 'asf', 'wmv': 'asf', + 'weba': 'webm', 'vtt': 'webvtt', } ACODECS = { diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index d02b0bac0..a0ae12aea 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3529,7 +3529,7 @@ def mimetype2ext(mt, default=NO_DEFAULT): # Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. # Using .mp3 as it's the most popular one 'audio/mpeg': 'mp3', - 'audio/webm': 'weba', + 'audio/webm': 'webm', 'audio/x-matroska': 'mka', 'audio/x-mpegurl': 'm3u', 'midi': 'mid',