Skip to content

Commit

Permalink
Compare also that orignal titles match
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 17, 2024
1 parent db37379 commit 8e4ab36
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plextraktsync/trakt/TraktApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,12 @@ def find_by_guid(self, guid: PlexGuid):
if tm is None and guid.type == "movie":
show = self.search_by_id(guid.id, id_type=guid.provider, media_type="show")
if show:
ts = TraktItem(show)
self.logger.warning(
f"Found id match using show search: {guid.title_link}: {ts.title_link}",
extra={"markup": True},
)
if guid.title == show.title:
ts = TraktItem(show)
self.logger.warning(
f"Found id match using show search: {guid.title_link}: {ts.title_link}",
extra={"markup": True},
)

return tm

Expand Down

0 comments on commit 8e4ab36

Please sign in to comment.