From 4c8ed0de431f985ef491a5c1cc7448946e771a3f Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 18 Apr 2021 12:53:48 +0200 Subject: [PATCH] discoveryplus: fix detecting seasons fixes: #1361 --- lib/svtplay_dl/service/dplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/dplay.py b/lib/svtplay_dl/service/dplay.py index db638d5..9051823 100644 --- a/lib/svtplay_dl/service/dplay.py +++ b/lib/svtplay_dl/service/dplay.py @@ -150,7 +150,7 @@ class Dplay(Service): showid = None for what in res.json()["included"]: - if "attributes" in what and "alias" in what["attributes"] and "season" in what["attributes"]["alias"]: + if "attributes" in what and "alias" in what["attributes"] and "grid" in what["attributes"]["alias"]: programid = what["id"] for ses in what["attributes"]["component"]["filters"]: if ses["id"] == "seasonNumber":