From: Yen Chi Hsuan Date: Thu, 9 Jun 2016 04:58:24 +0000 (+0800) Subject: [utils] Add audio/mpeg to mimetype2ext() X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6c33d24b46ecfb1f2ce790e21f2410149fdfb095;p=youtube-dl [utils] Add audio/mpeg to mimetype2ext() Used in WDR live radios (#6147) --- diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 89234b39d..229de4b39 100644 --- a/youtube_dl/utils.py +++ b/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