From 791f1cf3614bada68045fd4ac0043d34c8dd19c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 14 Jan 2024 20:33:44 +0200 Subject: [PATCH] Log with info about editions --- plextraktsync/trakt/TraktUserList.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plextraktsync/trakt/TraktUserList.py b/plextraktsync/trakt/TraktUserList.py index 5439117aeed..2e5441b0996 100644 --- a/plextraktsync/trakt/TraktUserList.py +++ b/plextraktsync/trakt/TraktUserList.py @@ -104,7 +104,11 @@ def add(self, m: Media): # Report duplicates duplicates = [p for _, p in self.plex_items if p.key != m.plex_key and p == m.plex] for p in duplicates: - self.logger.warning(f'Duplicate {p.title_link} ({p.key}) with {m.title_link} {m.plex_key}', extra={"markup": True}) + msg = f'Duplicate {p.title_link} ({p.key}) with {m.title_link} {m.plex_key}' + if p.edition_title is not None: + self.logger.info(msg, extra={"markup": True}) + else: + self.logger.warning(msg, extra={"markup": True}) @property def title_link(self):