mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
lyrics: Add symbols for better visual feedback in the logs
This commit is contained in:
parent
f94d2767f9
commit
8bdc2c6cf0
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue