mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
[utils] Add audio/mpeg to mimetype2ext()
Used in WDR live radios (#6147)
This commit is contained in:
parent
be6217b261
commit
6c33d24b46
@ -2020,6 +2020,9 @@ def mimetype2ext(mt):
|
|||||||
|
|
||||||
ext = {
|
ext = {
|
||||||
'audio/mp4': 'm4a',
|
'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)
|
}.get(mt)
|
||||||
if ext is not None:
|
if ext is not None:
|
||||||
return ext
|
return ext
|
||||||
|
Loading…
Reference in New Issue
Block a user