mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
[utils] Add audio/mpeg to mimetype2ext()
Used in WDR live radios (#6147)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user