[utils] Add audio/mpeg to mimetype2ext()

Used in WDR live radios (#6147)
pull/8/head
Yen Chi Hsuan 2016-06-09 12:58:24 +08:00
rodzic be6217b261
commit 6c33d24b46
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 3FDDD575826C5C30
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -2020,6 +2020,9 @@ def mimetype2ext(mt):
ext = {
'audio/mp4': 'm4a',
# Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. Here use .mp3 as
# it's the most popular one
'audio/mpeg': 'mp3',
}.get(mt)
if ext is not None:
return ext