[theplatform] extract subtitles with multiple formats from the metadata

pull/8/head
Remita Amine 8 years ago
parent 98affc1a48
commit 11f502fac1

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

Loading…
Cancel
Save