Add resolve_any method
@@ -95,6 +95,13 @@ def __init__(self, plex: PlexApi, trakt: TraktApi):
self.plex = plex
self.trakt = trakt
+ def resolve_any(self, pm: PlexLibraryItem, tm=None):
+ for guid in pm.guids:
+ m = self.resolve_guid(guid, tm)
+ if m:
+ return m
+ return None
+
def resolve(self, pm: PlexLibraryItem, tm=None):
try:
guid = pm.guid
