From c4c5337080e7dd93b31ddcaab396c271c8eee107 Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:12:13 +0100 Subject: [PATCH] fix(iP): Fix episode listing --- services/iP/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/iP/__init__.py b/services/iP/__init__.py index a2f39fc..143eafc 100644 --- a/services/iP/__init__.py +++ b/services/iP/__init__.py @@ -132,10 +132,11 @@ class iP(Service): else: seasons = [self.get_data(pid, x["id"]) for x in data["slices"] or [{"id": None}]] episode_ids = [ - episode["episode"].get("id") + episode.get("episode", {}).get("id") for season in seasons for episode in season["entities"]["results"] - if not episode["episode"].get("live") + if not episode.get("episode", {}).get("live") + and episode.get("episode", {}).get("id") is not None ] episodes = self.get_episodes(episode_ids) return Series(episodes)