Sergey M․ 9 лет назад
Родитель
Сommit
21ac1a8ac3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      youtube_dl/extractor/limelight.py

+ 1 - 1
youtube_dl/extractor/limelight.py

@@ -98,7 +98,7 @@ class LimelightBaseIE(InfoExtractor):
         } for thumbnail in properties.get('thumbnails', []) if thumbnail.get('url')]
 
         subtitles = {}
-        for caption in properties.get('captions', {}):
+        for caption in properties.get('captions', []):
             lang = caption.get('language_code')
             subtitles_url = caption.get('url')
             if lang and subtitles_url: