1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[utils] Add audio/mpeg to mimetype2ext()

Used in WDR live radios (#6147)
This commit is contained in:
Yen Chi Hsuan 2016-06-09 12:58:24 +08:00
parent be6217b261
commit 6c33d24b46
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30

View file

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