1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00

discoveryplus: fix detecting seasons

fixes: #1361
This commit is contained in:
Johan Andersson 2021-04-18 12:53:48 +02:00
parent 8805627a21
commit 4c8ed0de43

View File

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