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

discoveryplus: better fix to find correct shows

fixes: #1368
fixes: #1366
This commit is contained in:
Johan Andersson 2021-04-22 19:58:17 +02:00
parent 0dcb01fd5a
commit aae55fcc2d

View File

@ -150,11 +150,7 @@ class Dplay(Service):
showid = None showid = None
for what in res.json()["included"]: for what in res.json()["included"]:
if ( if "attributes" in what and "component" in what["attributes"] and what["attributes"]["component"]["id"] == "tabbed-content":
"attributes" in what
and "alias" in what["attributes"]
and ("grid" in what["attributes"]["alias"] or "season" in what["attributes"]["alias"])
):
programid = what["id"] programid = what["id"]
for ses in what["attributes"]["component"]["filters"]: for ses in what["attributes"]["component"]["filters"]:
if ses["id"] == "seasonNumber": if ses["id"] == "seasonNumber":