1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

tv4play: fix so all episodes work again

This commit is contained in:
Johan Andersson 2018-09-23 20:05:36 +02:00
parent be1a20a1f9
commit ad75ef77f0

View File

@ -92,8 +92,8 @@ class Tv4play(Service, OpenGraphThumbMixin):
for i in jansson:
janson2 = json.loads(i["data"])
if "program" in janson2["data"]:
if "panels" in janson2["data"]["program"]:
for n in janson2["data"]["program"]["panels"]:
if "programPanels" in janson2["data"]["program"]:
for n in janson2["data"]["program"]["programPanels"]["panels"]:
if n.get("assetType", None) == "EPISODE":
for z in n["videoList"]["videoAssets"]:
show = z["program_nid"]