mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +01:00
discoveryplus: better fix to find correct shows
fixes: #1368 fixes: #1366
This commit is contained in:
parent
0dcb01fd5a
commit
aae55fcc2d
@ -150,11 +150,7 @@ class Dplay(Service):
|
||||
|
||||
showid = None
|
||||
for what in res.json()["included"]:
|
||||
if (
|
||||
"attributes" in what
|
||||
and "alias" in what["attributes"]
|
||||
and ("grid" in what["attributes"]["alias"] or "season" in what["attributes"]["alias"])
|
||||
):
|
||||
if "attributes" in what and "component" in what["attributes"] and what["attributes"]["component"]["id"] == "tabbed-content":
|
||||
programid = what["id"]
|
||||
for ses in what["attributes"]["component"]["filters"]:
|
||||
if ses["id"] == "seasonNumber":
|
||||
|
Loading…
Reference in New Issue
Block a user