X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Futils.py;h=904f23fd7747f5fd1957ab268713513da1526d5c;hb=6562d34a8cbdb93de77a8042f7409ebe31e3e3e4;hp=1091f17f32d3e8ba86b1a0c468e1564c8199e3f2;hpb=5e9e3d0f6bf2055c557f360758d6d7eb146edcba;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 1091f17f3..904f23fd7 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',