Explorar el Código

[limelight] Fix typo

Sergey M․ hace 9 años
padre
commit
21ac1a8ac3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: