youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 6c33d24b46ecfb1f2ce790e21f2410149fdfb095
parent be6217b26142491232fb697b125015d45437832d
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Thu,  9 Jun 2016 12:58:24 +0800

[utils] Add audio/mpeg to mimetype2ext()

Used in WDR live radios (#6147)

Diffstat:
Myoutube_dl/utils.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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