Resolve find_by_media deprecation
MODIFY
plex_trakt_sync/commands/inspect.py
plex_trakt_sync/commands/inspect.py
@@ -38,7 +38,7 @@ def inspect(input):
print(f" Guid: {guid}, Id: {guid.id}, Provider: {guid.provider}")
try:
- tm = trakt.find_by_media(m)
+ tm = trakt.find_by_media(m.guid)
print(f"Trakt match: {tm}")
except Exception as e:
print(f"Error: {e}")

MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -272,7 +272,7 @@ def find_episode(self, tm: TVShow, pe: PlexLibraryItem, lookup=None):
# Retry using search for specific Plex Episode
logger.warning("Retry using search for specific Plex Episode")
if not pe.guid.is_episode:
- return self.find_by_media(pe)
+ return self.find_by_guid(pe.guid)
return None
def flush(self):

Resolve find_by_media deprecation