]> jfr.im git - yt-dlp.git/commitdiff
[utils] `mimetype2ext`: weba is not standard
authorpukkandan <redacted>
Tue, 3 Jan 2023 02:35:45 +0000 (08:05 +0530)
committerpukkandan <redacted>
Tue, 3 Jan 2023 05:55:01 +0000 (11:25 +0530)
Fix bug in fbb73833067ba742459729809679a62f34b3e41e2647c933b8ed22f95dd8e9866c4db031867a1bc8
Closes #5935

yt_dlp/postprocessor/ffmpeg.py
yt_dlp/utils.py

index 9b70d749f38aac8f64069ffe6b6a762a9990713b..5acd75376275e970d0b931ca9bf076dae0278c8d 100644 (file)
@@ -44,6 +44,7 @@
     'ts': 'mpegts',
     'wma': 'asf',
     'wmv': 'asf',
+    'weba': 'webm',
     'vtt': 'webvtt',
 }
 ACODECS = {
index d02b0bac0424681d597354f63eefe78860dda6a9..a0ae12aeac701718c3405e57fdc161434b990b20 100644 (file)
@@ -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',