From 2e1f10ef63f0cc97ef4da09cb72dfbc43aaa8c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 7 Jan 2024 21:24:18 +0200 Subject: [PATCH] Save show object in trakt episode in find_by_episode_guid --- plextraktsync/trakt/TraktApi.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plextraktsync/trakt/TraktApi.py b/plextraktsync/trakt/TraktApi.py index 78d543c736..51e698d2e4 100644 --- a/plextraktsync/trakt/TraktApi.py +++ b/plextraktsync/trakt/TraktApi.py @@ -217,8 +217,14 @@ def find_by_episode_guid(self, guid: PlexGuid): return None lookup = TraktLookup(ts) + te = self.find_episode_guid(guid, lookup) + if not te: + return None + + # NOTE: overwrites property of type str + te.show = ts - return self.find_episode_guid(guid, lookup) + return te def find_by_guid(self, guid: PlexGuid): if guid.type == "episode" and guid.is_episode: