Skip to content

Commit

Permalink
Log with info about editions
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 14, 2024
1 parent 6e41ffb commit 791f1cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plextraktsync/trakt/TraktUserList.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 791f1cf

Please sign in to comment.