Browse Source

[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)
totalwebcasting
remitamine 8 years ago
parent
commit
df634be2ed
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py View File

@ -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,


Loading…
Cancel
Save