From 7786d89a4d0a7bc2426a91fd567b652b06caf720 Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:11:31 +0200 Subject: [PATCH] fix(ALL4): Add fallback asset info --- services/ALL4/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/ALL4/__init__.py b/services/ALL4/__init__.py index db7a3e9..9f8bd96 100644 --- a/services/ALL4/__init__.py +++ b/services/ALL4/__init__.py @@ -179,7 +179,7 @@ class ALL4(Service): number=episode["episodeNumber"], name=episode["originalTitle"], language="en", - data=episode["assetInfo"].get("streaming"), + data=episode["assetInfo"].get("streaming") or episode["assetInfo"].get("download"), ) for episode in data["brand"]["episodes"] if episode.get("assetInfo") and episode["programmeId"] == on_demand @@ -211,7 +211,7 @@ class ALL4(Service): name=data["brand"]["title"], year=int(data["brand"]["summary"].split(" ")[0].strip().strip("()")), language="en", - data=movie["assetInfo"].get("streaming"), + data=movie["assetInfo"].get("streaming") or movie["assetInfo"].get("download"), ) for movie in data["brand"]["episodes"] ] @@ -227,7 +227,7 @@ class ALL4(Service): number=episode["episodeNumber"], name=episode["originalTitle"], language="en", - data=episode["assetInfo"].get("streaming"), + data=episode["assetInfo"].get("streaming") or episode["assetInfo"].get("download"), ) for episode in data["brand"]["episodes"] if episode.get("assetInfo")