[shahid] fix variable name
authorremitamine <remitamine@gmail.com>
Sat, 25 Jul 2015 18:14:18 +0000 (19:14 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 25 Jul 2015 18:14:18 +0000 (19:14 +0100)
youtube_dl/extractor/shahid.py

index da3141f11399c86f5d17e64f3dc39346b07a0275..b3b45da2412cc15218d1db53373dbf89cf12d440 100644 (file)
@@ -64,7 +64,7 @@ class ShahidIE(InfoExtractor):
         if 'url' in player_json_data:
             m3u8_url = player_json_data['url']
         else:
-            for error in json_data['error'].values():
+            for error in player_json_data['error'].values():
                 raise ExtractorError(error)
             return
         formats = self._extract_m3u8_formats(m3u8_url, video_id)