1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-18 07:26:41 +00:00

[shahid] don't fail on missing info

This commit is contained in:
remitamine 2015-07-18 23:16:57 +01:00
parent 84c0ed50a5
commit 3c07a729a6

View File

@ -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