diff options
author | remitamine <remitamine@gmail.com> | 2015-07-18 23:16:57 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-07-18 23:16:57 +0100 |
commit | 3c07a729a652a25caf9aac6143a19d040ecf9a15 (patch) | |
tree | 73652e596fb5e85bcd216e8403955987a730f539 /youtube_dl/extractor/shahid.py | |
parent | 84c0ed50a5491146a8a6b489c530c2335c023f8f (diff) |
[shahid] don't fail on missing info
Diffstat (limited to 'youtube_dl/extractor/shahid.py')
-rw-r--r-- | youtube_dl/extractor/shahid.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/shahid.py b/youtube_dl/extractor/shahid.py index 9846c052c..04de866f4 100644 --- a/youtube_dl/extractor/shahid.py +++ b/youtube_dl/extractor/shahid.py @@ -35,9 +35,9 @@ class ShahidIE(InfoExtractor): video_id ) title = json_data['name'] - thumbnail = json_data['image'] - categories = json_data['genre'] - description = json_data['description'] + thumbnail = json_data.get('image') + categories = json_data.get('genre') + description = json_data.get('description') player_json_data = self._download_json( 'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-'+video_id+'.type-player.html', video_id |