From 65a916099ff23fb099f9edc94365aea034e1bc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 4 Jan 2023 19:01:25 +0200 Subject: [PATCH] Use m.title, m consistently --- plextraktsync/sync.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plextraktsync/sync.py b/plextraktsync/sync.py index fde09217c25..5e02b938a89 100644 --- a/plextraktsync/sync.py +++ b/plextraktsync/sync.py @@ -179,7 +179,7 @@ def sync_collection(self, m: Media, dry_run=False): if m.is_collected: return - logger.info(f"Adding to collection: {m}") + logger.info(f"Adding to collection: '{m.title}' {m}") if not dry_run: m.add_to_collection(batch=True) @@ -235,9 +235,9 @@ def sync_watched(self, m: Media, dry_run=False): def watchlist_sync_item(self, m: Media, dry_run=False): if m.plex is None: if self.config.update_plex_wl: - logger.info(f"Skipping '{m.trakt.title}' ({m.trakt.year}) {m} from Trakt watchlist because not found in Plex Discover") + logger.info(f"Skipping '{m.trakt.title}' {m} from Trakt watchlist because not found in Plex Discover") elif self.config.update_trakt_wl: - logger.info(f"Removing '{m.trakt.title}' ({m.trakt.year}) {m} from Trakt watchlist") + logger.info(f"Removing '{m.trakt.title}' {m} from Trakt watchlist") if not dry_run: m.remove_from_trakt_watchlist(batch=True) return @@ -245,11 +245,11 @@ def watchlist_sync_item(self, m: Media, dry_run=False): if m in self.plex_wl: if m not in self.trakt_wl: if self.config.update_trakt_wl: - logger.info(f"Adding '{m.plex.item.title}' ({m.plex.item.year}) {m} to Trakt watchlist") + logger.info(f"Adding '{m.title}' {m} to Trakt watchlist") if not dry_run: m.add_to_trakt_watchlist(batch=True) else: - logger.info(f"Removing '{m.trakt.title}' ({m.plex.item.year}) {m} from Plex watchlist") + logger.info(f"Removing '{m.title}' {m} from Plex watchlist") if not dry_run: m.remove_from_plex_watchlist() else: @@ -261,11 +261,11 @@ def watchlist_sync_item(self, m: Media, dry_run=False): del self.trakt_wl[m] elif m in self.trakt_wl: if self.config.update_plex_wl: - logger.info(f"Adding '{m.trakt.title}' to Plex watchlist") + logger.info(f"Adding '{m.title}' {m} to Plex watchlist") if not dry_run: m.add_to_plex_watchlist() else: - logger.info(f"Removing '{m.trakt.title}' from Trakt watchlist") + logger.info(f"Removing '{m.title}' {m} from Trakt watchlist") if not dry_run: m.remove_from_trakt_watchlist(batch=True)