diff options
author | Remita Amine <remitamine@gmail.com> | 2016-07-06 09:11:46 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-07-06 09:11:46 +0100 |
commit | ab49d7a9fae08763de549f85ba138b22f9122a99 (patch) | |
tree | d4a2c796088234b9553db074ccbd5ae1752a540c /youtube_dl/extractor/metacafe.py | |
parent | b4173f1551c47f64745cb91451c46891e2aaac16 (diff) |
use mimetype2ext to determine manifest ext in multiple extractors
Diffstat (limited to 'youtube_dl/extractor/metacafe.py')
-rw-r--r-- | youtube_dl/extractor/metacafe.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py index acab81863..e6e7659a1 100644 --- a/youtube_dl/extractor/metacafe.py +++ b/youtube_dl/extractor/metacafe.py @@ -234,9 +234,8 @@ class MetacafeIE(InfoExtractor): source_url = source.get('src') if not source_url: continue - mime_type = source.get('type') - ext = mimetype2ext(mime_type) or determine_ext(source_url) - if mime_type == 'application/x-mpegURL' or ext == 'm3u8': + ext = mimetype2ext(source.get('type')) or determine_ext(source_url) + if ext == 'm3u8': video_url.extend(self._extract_m3u8_formats( source_url, video_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)) |