X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Futils.py;h=ed199c4ad37aa5a94a30c99e458fd061f44e665d;hb=d7e794928d1b1386a8f5960ce6ece3ae88d975a1;hp=1091f17f32d3e8ba86b1a0c468e1564c8199e3f2;hpb=073ac1225f6fe28905e11f29f2d23f4b4db50f9c;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 1091f17f3..ed199c4ad 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2148,7 +2148,7 @@ def mimetype2ext(mt): return ext _, _, res = mt.rpartition('/') - res = res.lower() + res = res.split(';')[0].strip().lower() return { '3gpp': '3gp', @@ -2168,6 +2168,7 @@ def mimetype2ext(mt): 'f4m+xml': 'f4m', 'hds+xml': 'f4m', 'vnd.ms-sstr+xml': 'ism', + 'quicktime': 'mov', }.get(res, res)