mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
barnkanalen: dont crash on show page
This commit is contained in:
parent
a89c54dabf
commit
6a922a86db
@ -43,6 +43,10 @@ class Barnkanalen(Svtplay):
|
||||
return
|
||||
|
||||
janson = json.loads(match.group(1))["context"]["dispatcher"]["stores"]["ApplicationStateStore"]["data"]
|
||||
if "episodeModel" not in janson["categoryStateCache"]["karaktarer"]:
|
||||
yield ServiceError("No videos found")
|
||||
return
|
||||
|
||||
janson["video"] = janson["categoryStateCache"]["karaktarer"]["episodeModel"]
|
||||
|
||||
if "title" not in janson["video"]:
|
||||
|
Loading…
Reference in New Issue
Block a user