From 30379bca389fc42f9801d770a31cba6a7c38b22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Tue, 27 Aug 2024 11:22:34 +0100 Subject: [PATCH] Update lyrics.sources configuration to prioritize lrclib --- beetsplug/lyrics.py | 2 +- docs/changelog.rst | 2 ++ docs/plugins/lyrics.rst | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 23cf9c68c..eedf1e0e2 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -783,7 +783,7 @@ class Google(Backend): class LyricsPlugin(plugins.BeetsPlugin): - SOURCES = ["google", "musixmatch", "genius", "tekstowo", "lrclib"] + SOURCES = ["lrclib", "google", "musixmatch", "genius", "tekstowo"] SOURCE_BACKENDS = { "google": Google, "musixmatch": MusiXmatch, diff --git a/docs/changelog.rst b/docs/changelog.rst index d3b39184c..d1240e9ec 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -51,6 +51,8 @@ Bug fixes: * :doc:`plugins/lyrics`: Fix fetching lyrics from ``lrclib`` source. Instead of attempting to fetch lyrics for a specific album, artist, title and duration combination, the plugin now performs a search which yields many results. + Update the default ``sources`` configuration to prioritize ``lrclib`` over + other sources since it returns reliable results quicker than others. :bug:`5102` For packagers: diff --git a/docs/plugins/lyrics.rst b/docs/plugins/lyrics.rst index 493947693..d1f434d70 100644 --- a/docs/plugins/lyrics.rst +++ b/docs/plugins/lyrics.rst @@ -56,7 +56,7 @@ configuration file. The available options are: sources known to be scrapeable. - **sources**: List of sources to search for lyrics. An asterisk ``*`` expands to all available sources. - Default: ``google genius tekstowo lrclib``, i.e., all the available sources. The + Default: ``lrclib google genius tekstowo``, i.e., all the available sources. The ``google`` source will be automatically deactivated if no ``google_API_key`` is setup. The ``google``, ``genius``, and ``tekstowo`` sources will only be enabled if