CR comments

This commit is contained in:
Xavier Hocquet 2021-03-28 13:08:00 -05:00
parent 8c6530369d
commit 6081e6a8df
2 changed files with 14 additions and 8 deletions

View file

@ -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

View file

@ -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