[limelight] Fix typo
authorSergey M․ <dstftw@gmail.com>
Fri, 10 Jun 2016 22:52:50 +0000 (05:52 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 10 Jun 2016 22:52:50 +0000 (05:52 +0700)
youtube_dl/extractor/limelight.py

index da5d198b99a1edf6eb621191cdbcd6eafaf61150..a25fb8e2c7de8ae492089fca362fabc831e60ff1 100644 (file)
@@ -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: