From 92cf2e0998f7420f30a0bb95d97866f6430c0f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 27 Jan 2024 14:11:12 +0200 Subject: [PATCH] Use title link for playlist display --- plextraktsync/plex/PlexPlaylist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plextraktsync/plex/PlexPlaylist.py b/plextraktsync/plex/PlexPlaylist.py index 67baf9b7dc..efbbe0a9ee 100644 --- a/plextraktsync/plex/PlexPlaylist.py +++ b/plextraktsync/plex/PlexPlaylist.py @@ -62,7 +62,7 @@ def update(self, items: list[PlexMedia], description=None) -> bool: del self.__dict__["playlist"] del self.__dict__["items"] playlist = self.server.createPlaylist(self.name, items=items) - self.logger.info(f"Created plex playlist '{self.name}' with {len(items)} items") + self.logger.info(f"Created plex playlist {self.title_link} with {len(items)} items", extra={"markup": True}) # Skip if playlist could not be made/retrieved if playlist is None: @@ -71,7 +71,7 @@ def update(self, items: list[PlexMedia], description=None) -> bool: updated = False if description is not None and description != playlist.summary: playlist.editSummary(summary=description) - self.logger.debug(f"Updated '{self.name}' description: {description}") + self.logger.debug(f"Updated {self.title_link} description: '{description}'", extra={"markup": True}) updated = True # Skip if nothing to update