[utils] `mimetype2ext`: weba is not standard

Fix bug in fbb7383306, 2647c933b8
Closes #5935
pull/5939/head
pukkandan 2023-01-03 08:05:45 +05:30
rodzic 1a3cd8ec35
commit d80ca5deaa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7EEE9E1E817D0A39
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -44,6 +44,7 @@ EXT_TO_OUT_FORMATS = {
'ts': 'mpegts',
'wma': 'asf',
'wmv': 'asf',
'weba': 'webm',
'vtt': 'webvtt',
}
ACODECS = {

Wyświetl plik

@ -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',