|
|
@ -115,10 +115,17 @@ class MTVServicesInfoExtractor(InfoExtractor):
|
|
|
|
if transcript.get('kind') != 'captions':
|
|
|
|
if transcript.get('kind') != 'captions':
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
lang = transcript.get('srclang')
|
|
|
|
lang = transcript.get('srclang')
|
|
|
|
subtitles[lang] = [{
|
|
|
|
for typographic in transcript.findall('./typographic'):
|
|
|
|
'url': compat_str(typographic.get('src')),
|
|
|
|
sub_src = typographic.get('src')
|
|
|
|
'ext': typographic.get('format')
|
|
|
|
if not sub_src:
|
|
|
|
} for typographic in transcript.findall('./typographic')]
|
|
|
|
continue
|
|
|
|
|
|
|
|
ext = typographic.get('format')
|
|
|
|
|
|
|
|
if ext == 'cea-608':
|
|
|
|
|
|
|
|
ext = 'scc'
|
|
|
|
|
|
|
|
subtitles.setdefault(lang, []).append({
|
|
|
|
|
|
|
|
'url': compat_str(sub_src),
|
|
|
|
|
|
|
|
'ext': ext
|
|
|
|
|
|
|
|
})
|
|
|
|
return subtitles
|
|
|
|
return subtitles
|
|
|
|
|
|
|
|
|
|
|
|
def _get_video_info(self, itemdoc, use_hls=True):
|
|
|
|
def _get_video_info(self, itemdoc, use_hls=True):
|
|
|
|