don't search ep if show is unknown
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -301,10 +301,11 @@ def find_by_guid(self, guid: PlexGuid):
ts: TVShow = self.search_by_id(
guid.show_id, id_type=guid.provider, media_type="show"
)
+ if ts:
lookup = TraktLookup(ts)
return self.find_episode_guid(guid, lookup)
-
+ else:
return self.search_by_id(guid.id, id_type=guid.provider, media_type=guid.type)
@rate_limit()

don't search ep if show is unknown