Accept lyrics source as a string

This commit is contained in:
Ratiq Narwal 2025-11-06 17:18:29 -08:00
parent 61a4c737ee
commit e9afe069bc
2 changed files with 4 additions and 1 deletions

View file

@ -958,7 +958,7 @@ class LyricsPlugin(RequestHandler, plugins.BeetsPlugin):
@cached_property @cached_property
def backends(self) -> list[Backend]: def backends(self) -> list[Backend]:
user_sources = self.config["sources"].get() user_sources = self.config["sources"].as_str_seq()
chosen = sanitize_choices(user_sources, self.BACKEND_BY_NAME) chosen = sanitize_choices(user_sources, self.BACKEND_BY_NAME)
if "google" in chosen and not self.config["google_API_key"].get(): if "google" in chosen and not self.config["google_API_key"].get():

View file

@ -30,6 +30,9 @@ Bug fixes:
features for all remaining tracks in the session, avoiding unnecessary API features for all remaining tracks in the session, avoiding unnecessary API
calls and rate limit exhaustion. calls and rate limit exhaustion.
- :doc:`plugins/lyrics`: Accepts strings (used to only accept list of strings)
:bug:`5962`
For plugin developers: For plugin developers:
- A new plugin event, ``album_matched``, is sent when an album that is being - A new plugin event, ``album_matched``, is sent when an album that is being