|
|
@ -135,11 +135,12 @@ class TurnerBaseIE(InfoExtractor):
|
|
|
|
subtitles = {}
|
|
|
|
subtitles = {}
|
|
|
|
for source in video_data.findall('closedCaptions/source'):
|
|
|
|
for source in video_data.findall('closedCaptions/source'):
|
|
|
|
for track in source.findall('track'):
|
|
|
|
for track in source.findall('track'):
|
|
|
|
source_url = source.get('url')
|
|
|
|
track_url = track.get('url')
|
|
|
|
if not source_url:
|
|
|
|
if not track_url:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
subtitles.set_default(source.get('lang') or source.get('label') or 'en', []).append({
|
|
|
|
lang = track.get('lang') or track.get('label') or 'en'
|
|
|
|
'url': source_url,
|
|
|
|
subtitles.setdefault(lang, []).append({
|
|
|
|
|
|
|
|
'url': track_url,
|
|
|
|
'ext': {
|
|
|
|
'ext': {
|
|
|
|
'scc': 'scc',
|
|
|
|
'scc': 'scc',
|
|
|
|
'webvtt': 'vtt',
|
|
|
|
'webvtt': 'vtt',
|
|
|
|