Merge branch 'master' into spotify

This commit is contained in:
Šarūnas Nejus 2026-01-08 00:23:15 +00:00 committed by GitHub
commit a3c2e383f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View file

@ -1588,7 +1588,7 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
message = ui.colorize(
"text_highlight_minor", "has album art"
)
self._log.info("{}: {}", album, message)
ui.print_(f"{album}: {message}")
else:
# In ordinary invocations, look for images on the
# filesystem. When forcing, however, always go to the Web
@ -1601,4 +1601,4 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
message = ui.colorize("text_success", "found album art")
else:
message = ui.colorize("text_error", "no art found")
self._log.info("{}: {}", album, message)
ui.print_(f"{album}: {message}")

View file

@ -37,6 +37,7 @@ New features:
differences in metadata source styles.
- :doc:`plugins/spotify`: Added support for multi-artist albums and tracks,
saving all contributing artists to the respective fields.
- :doc:`plugins/fetchart`: Fix colorized output text.
- :doc:`plugins/ftintitle`: Featured artists are now inserted before brackets
containing remix/edit-related keywords (e.g., "Remix", "Live", "Edit") instead
of being appended at the end. This improves formatting for titles like "Song 1

View file

@ -98,3 +98,8 @@ class FetchartCliTest(PluginTestCase):
self.run_command("fetchart")
self.album.load()
self.check_cover_is_stored()
def test_colorization(self):
self.config["ui"]["color"] = True
out = self.run_with_output("fetchart")
assert " - the älbum: \x1b[1;31mno art found\x1b[39;49;00m\n" == out