aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index beed79fd0..ed5492826 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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