|
|
@ -73,10 +73,10 @@ class ThePlatformBaseIE(OnceIE):
|
|
|
|
if isinstance(captions, list):
|
|
|
|
if isinstance(captions, list):
|
|
|
|
for caption in captions:
|
|
|
|
for caption in captions:
|
|
|
|
lang, src, mime = caption.get('lang', 'en'), caption.get('src'), caption.get('type')
|
|
|
|
lang, src, mime = caption.get('lang', 'en'), caption.get('src'), caption.get('type')
|
|
|
|
subtitles[lang] = [{
|
|
|
|
subtitles.setdefault(lang, []).append({
|
|
|
|
'ext': mimetype2ext(mime),
|
|
|
|
'ext': mimetype2ext(mime),
|
|
|
|
'url': src,
|
|
|
|
'url': src,
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'title': info['title'],
|
|
|
|
'title': info['title'],
|
|
|
|