]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[kaltura] Fix typo in subtitles extraction (closes #13569)
authorSergey M․ <dstftw@gmail.com>
Wed, 5 Jul 2017 16:20:50 +0000 (23:20 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 5 Jul 2017 16:20:50 +0000 (23:20 +0700)
youtube_dl/extractor/kaltura.py

index 41c1f3d96be288957cbaba2c21e3477a2969b24d..138d4844d1bbd70e56aff50b5a59ff2ddac8f665 100644 (file)
@@ -324,7 +324,7 @@ class KalturaIE(InfoExtractor):
         if captions:
             for caption in captions.get('objects', []):
                 # Continue if caption is not ready
-                if f.get('status') != 2:
+                if caption.get('status') != 2:
                     continue
                 if not caption.get('id'):
                     continue