Browse Source

[theplatform] extract subtitles with multiple formats from the metadata

Remita Amine 9 years ago
parent
commit
11f502fac1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      youtube_dl/extractor/theplatform.py

+ 2 - 2
youtube_dl/extractor/theplatform.py

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