fix(ALL4): Add fallback asset info
This commit is contained in:
parent
9cc4503388
commit
7786d89a4d
@ -179,7 +179,7 @@ class ALL4(Service):
|
|||||||
number=episode["episodeNumber"],
|
number=episode["episodeNumber"],
|
||||||
name=episode["originalTitle"],
|
name=episode["originalTitle"],
|
||||||
language="en",
|
language="en",
|
||||||
data=episode["assetInfo"].get("streaming"),
|
data=episode["assetInfo"].get("streaming") or episode["assetInfo"].get("download"),
|
||||||
)
|
)
|
||||||
for episode in data["brand"]["episodes"]
|
for episode in data["brand"]["episodes"]
|
||||||
if episode.get("assetInfo") and episode["programmeId"] == on_demand
|
if episode.get("assetInfo") and episode["programmeId"] == on_demand
|
||||||
@ -211,7 +211,7 @@ class ALL4(Service):
|
|||||||
name=data["brand"]["title"],
|
name=data["brand"]["title"],
|
||||||
year=int(data["brand"]["summary"].split(" ")[0].strip().strip("()")),
|
year=int(data["brand"]["summary"].split(" ")[0].strip().strip("()")),
|
||||||
language="en",
|
language="en",
|
||||||
data=movie["assetInfo"].get("streaming"),
|
data=movie["assetInfo"].get("streaming") or movie["assetInfo"].get("download"),
|
||||||
)
|
)
|
||||||
for movie in data["brand"]["episodes"]
|
for movie in data["brand"]["episodes"]
|
||||||
]
|
]
|
||||||
@ -227,7 +227,7 @@ class ALL4(Service):
|
|||||||
number=episode["episodeNumber"],
|
number=episode["episodeNumber"],
|
||||||
name=episode["originalTitle"],
|
name=episode["originalTitle"],
|
||||||
language="en",
|
language="en",
|
||||||
data=episode["assetInfo"].get("streaming"),
|
data=episode["assetInfo"].get("streaming") or episode["assetInfo"].get("download"),
|
||||||
)
|
)
|
||||||
for episode in data["brand"]["episodes"]
|
for episode in data["brand"]["episodes"]
|
||||||
if episode.get("assetInfo")
|
if episode.get("assetInfo")
|
||||||
|
Loading…
Reference in New Issue
Block a user