Browse Source
[utils] Add audio/mpeg to mimetype2ext()
Used in WDR live radios (#6147)
master
Yen Chi Hsuan
8 years ago
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30
1 changed files with
3 additions and
0 deletions
-
youtube_dl/utils.py
|
|
@ -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 |
|
|
|