Undo the previous commit (it was a mistake)
authorIsmael Mejia <iemejia@gmail.com>
Wed, 7 Aug 2013 19:24:42 +0000 (21:24 +0200)
committerIsmael Mejia <iemejia@gmail.com>
Wed, 7 Aug 2013 19:24:42 +0000 (21:24 +0200)
youtube_dl/YoutubeDL.py

index beed79fd042b756f995867c5814797005974a4da..ed5492826f211fc2ce6331523070e0769773162f 100644 (file)
@@ -493,7 +493,7 @@ class YoutubeDL(object):
             subtitles = info_dict['subtitles']
             sub_format = self.params.get('subtitlesformat')
             
-            for sub_lang in subtitles:
+            for sub_lang in subtitles.keys():
                 sub = subtitles[sub_lang]
                 if sub is None:
                     continue