Skip to content

Commit

Permalink
warn if plex search failed
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc56 committed Dec 26, 2023
1 parent a41f835 commit e3cacdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plextraktsync/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ def resolve_trakt(self, tm: TraktItem) -> Media:
"""Find Plex media from Trakt id using Plex Search and Discover"""
result = self.plex.search_online(tm.item.title, tm.type)
pm = self._guid_match(result, tm)
if pm is None:
logger.warning(f"Skipping '{tm.item.title}': not found on Plex Discover")
return None
return self.make_media(pm, tm.item)

def make_media(self, plex: PlexLibraryItem, trakt):
Expand Down

0 comments on commit e3cacdf

Please sign in to comment.