浏览代码

[limelight] Fix typo

Sergey M․ 9 年之前
父节点
当前提交
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')]
         } for thumbnail in properties.get('thumbnails', []) if thumbnail.get('url')]
 
 
         subtitles = {}
         subtitles = {}
-        for caption in properties.get('captions', {}):
+        for caption in properties.get('captions', []):
             lang = caption.get('language_code')
             lang = caption.get('language_code')
             subtitles_url = caption.get('url')
             subtitles_url = caption.get('url')
             if lang and subtitles_url:
             if lang and subtitles_url: