Skip to content

Commit 7cca07d

Browse files
authored
Accept lyrics source as a string (#6149)
## Description Fixes #5962. The fix was shared in the issue. Now it uses ```as_str_seq``` similarly to other plugins.
2 parents 61a4c73 + 26a8e16 commit 7cca07d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

beetsplug/lyrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ class LyricsPlugin(RequestHandler, plugins.BeetsPlugin):
958958

959959
@cached_property
960960
def backends(self) -> list[Backend]:
961-
user_sources = self.config["sources"].get()
961+
user_sources = self.config["sources"].as_str_seq()
962962

963963
chosen = sanitize_choices(user_sources, self.BACKEND_BY_NAME)
964964
if "google" in chosen and not self.config["google_API_key"].get():

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Bug fixes:
2929
audio-features endpoint, the plugin logs a warning once and skips audio
3030
features for all remaining tracks in the session, avoiding unnecessary API
3131
calls and rate limit exhaustion.
32+
- :doc:`plugins/lyrics`: Accepts strings for lyrics sources (previously only
33+
accepted a list of strings). :bug:`5962`
3234

3335
For plugin developers:
3436

0 commit comments

Comments
 (0)