1
0
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:
Johan Andersson 2019-08-22 18:09:25 +02:00
parent a89c54dabf
commit 6a922a86db

View File

@ -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"]: