From 8bdc2c6cf0ee58dad2ae236a8455b1ae06a5d4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Thu, 19 Sep 2024 20:00:44 +0100 Subject: [PATCH] lyrics: Add symbols for better visual feedback in the logs --- beetsplug/lyrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 097110e13..5a1301039 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -1049,7 +1049,7 @@ class LyricsPlugin(RequestHandler, plugins.BeetsPlugin): """ # Skip if the item already has lyrics. if not force and item.lyrics: - self.info("Lyrics already present: {}", item) + self.info("🔵 Lyrics already present: {}", item) return lyrics_matches = [] @@ -1065,7 +1065,7 @@ class LyricsPlugin(RequestHandler, plugins.BeetsPlugin): lyrics = "\n\n---\n\n".join(filter(None, lyrics_matches)) if lyrics: - self.info("Lyrics found: {}", item) + self.info("🟢 Found lyrics: {0}", item) if HAS_LANGDETECT and self.config["bing_client_secret"].get(): lang_from = langdetect.detect(lyrics) if self.config["bing_lang_to"].get() != lang_from and ( @@ -1076,7 +1076,7 @@ class LyricsPlugin(RequestHandler, plugins.BeetsPlugin): lyrics, self.config["bing_lang_to"] ) else: - self.info("Lyrics not found: {}", item) + self.info("🔴 Lyrics not found: {}", item) fallback = self.config["fallback"].get() if fallback: lyrics = fallback