projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c0ed5
)
[shahid] don't fail on missing info
author
remitamine
<remitamine@gmail.com>
Sat, 18 Jul 2015 22:16:57 +0000
(23:16 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 18 Jul 2015 22:16:57 +0000
(23:16 +0100)
youtube_dl/extractor/shahid.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/shahid.py
b/youtube_dl/extractor/shahid.py
index 9846c052c7546ab5d368bdb7fd12a50dc6e6d335..04de866f46873a8650b153ccae902f261b58a404 100644
(file)
--- 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