mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
Fix find all episodes for tv4play, some dictionary keys sometimes missing.
This commit is contained in:
parent
dd76a21fbe
commit
7736af04b5
@ -94,11 +94,11 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
|||||||
if "program" in janson2["data"]:
|
if "program" in janson2["data"]:
|
||||||
if "panels" in janson2["data"]["program"]:
|
if "panels" in janson2["data"]["program"]:
|
||||||
for n in janson2["data"]["program"]["panels"]:
|
for n in janson2["data"]["program"]["panels"]:
|
||||||
if n["assetType"] == "EPISODE":
|
if n.get("assetType", None) == "EPISODE":
|
||||||
for z in n["videoList"]["videoAssets"]:
|
for z in n["videoList"]["videoAssets"]:
|
||||||
show = z["program_nid"]
|
show = z["program_nid"]
|
||||||
items.append(z["id"])
|
items.append(z["id"])
|
||||||
if n["assetType"] == "CLIP" and config.get("include_clips"):
|
if n.get("assetType", None) == "CLIP" and config.get("include_clips"):
|
||||||
for z in n["videoList"]["videoAssets"]:
|
for z in n["videoList"]["videoAssets"]:
|
||||||
show = z["program_nid"]
|
show = z["program_nid"]
|
||||||
items.append(z["id"])
|
items.append(z["id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user