[shahid] don't fail on missing info
This commit is contained in:
parent
84c0ed50a5
commit
3c07a729a6
1 changed files with 3 additions and 3 deletions
|
@ -35,9 +35,9 @@ class ShahidIE(InfoExtractor):
|
||||||
video_id
|
video_id
|
||||||
)
|
)
|
||||||
title = json_data['name']
|
title = json_data['name']
|
||||||
thumbnail = json_data['image']
|
thumbnail = json_data.get('image')
|
||||||
categories = json_data['genre']
|
categories = json_data.get('genre')
|
||||||
description = json_data['description']
|
description = json_data.get('description')
|
||||||
player_json_data = self._download_json(
|
player_json_data = self._download_json(
|
||||||
'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-'+video_id+'.type-player.html',
|
'https://shahid.mbc.net/arContent/getPlayerContent-param-.id-'+video_id+'.type-player.html',
|
||||||
video_id
|
video_id
|
||||||
|
|
Loading…
Reference in a new issue