From 6081e6a8dff95edbf636f105d2548473ff12e95b Mon Sep 17 00:00:00 2001 From: Xavier Hocquet Date: Sun, 28 Mar 2021 13:08:00 -0500 Subject: [PATCH] CR comments --- beetsplug/lyrics.py | 8 ++++---- docs/plugins/lyrics.rst | 14 ++++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 182e753f6..08efd38ff 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -716,10 +716,10 @@ class LyricsPlugin(plugins.BeetsPlugin): def sanitize_bs_sources(self, sources): for source in self.BS_SOURCES: if source in sources: - self._log.warning(u'To use the %s lyrics source, you must ' - u'install the beautifulsoup4 module. See ' - u'the documentation for further details.' - % source) + self._log.debug(u'To use the %s lyrics source, you must ' + u'install the beautifulsoup4 module. See ' + u'the documentation for further details.' + % source) sources.remove(source) return sources diff --git a/docs/plugins/lyrics.rst b/docs/plugins/lyrics.rst index c8e12b526..f05ef6357 100644 --- a/docs/plugins/lyrics.rst +++ b/docs/plugins/lyrics.rst @@ -62,7 +62,8 @@ configuration file. The available options are: Default: ``google musixmatch genius tekstowo``, i.e., all the available sources. The ``google`` source will be automatically deactivated if no ``google_API_key`` is setup. - The following sources will only be enabled if BeatifulSoup is installed: ``[google, genius, tekstowo]`` + The ``google``, ``genius``, and ``tekstowo`` sources will only be enabled if + BeautifulSoup is installed. Here's an example of ``config.yaml``:: @@ -128,6 +129,11 @@ few suggestions. Activate Google Custom Search ------------------------------ +Using the Google backend requires `BeautifulSoup`_, which you can install +using `pip`_ by typing:: + + pip install beautifulsoup4 + You also need to `register for a Google API key`_. Set the ``google_API_key`` configuration option to your key. Then add ``google`` to the list of sources in your configuration (or use @@ -150,11 +156,11 @@ After that, the lyrics plugin will fall back on other declared data sources. .. _pip: https://pip.pypa.io .. _BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/doc/ -Installing BeautifulSoup for Google, Genius, or Tekstowo.pl Backends +Activate Genius and Tekstowo.pl Lyrics -------------------------------------------------------------------- -Using the Google, Genius, or Tekstowo.pl backends requires `BeautifulSoup`_, -which you can install using `pip`_ by typing:: +Using the Genius or Tekstowo.pl backends requires `BeautifulSoup`_, which +you can install using `pip`_ by typing:: pip install beautifulsoup4