Add quicker search with older logic
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -96,6 +96,12 @@ def __init__(self, plex: PlexApi, trakt: TraktApi):
self.trakt = trakt
def resolve_any(self, pm: PlexLibraryItem, tm=None):
+ # quick search for old code (faster)
+ m = self.resolve(pm, tm)
+ if m:
+ return m
+
+ # walk over all guids (slower)
for guid in pm.guids:
m = self.resolve_guid(guid, tm)
if m:

Add quicker search with older logic