diff options
author | remitamine <remitamine@gmail.com> | 2016-04-01 19:39:02 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-04-01 19:47:49 +0100 |
commit | df634be2ed85b33968973a3e85935bb5d578ce42 (patch) | |
tree | f73edcdc2b704248f2b66a0b23a17c24b46c1fed /youtube_dl/extractor/common.py | |
parent | 6d628fafcadf6b9d2bc16c34c8cda8b53860e406 (diff) |
[common] prefer using mime type over ext for smil subtitle extraction
the subtitle ext for http://www.cnet.com/videos/download-amazon-prime-movies-and-tv/
is adb_xml while using the mime type it get tt(application/smptett+xml)
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 85ac0400c..94a583891 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1335,7 +1335,7 @@ class InfoExtractor(object): if not src or src in urls: continue urls.append(src) - ext = textstream.get('ext') or determine_ext(src) or mimetype2ext(textstream.get('type')) + ext = textstream.get('ext') or mimetype2ext(textstream.get('type')) or determine_ext(src) lang = textstream.get('systemLanguage') or textstream.get('systemLanguageName') or textstream.get('lang') or subtitles_lang subtitles.setdefault(lang, []).append({ 'url': src, |