mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
lyrics: simplify source handling a little
This commit is contained in:
parent
2928a16bd5
commit
c3c7da8061
1 changed files with 3 additions and 3 deletions
|
|
@ -609,12 +609,12 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
self._log.warn(u'To use the google lyrics source, you must '
|
||||
u'provide an API key in the configuration. '
|
||||
u'See the documentation for further details.')
|
||||
available_sources.remove('google')
|
||||
sources.remove('google')
|
||||
if not HAS_BEAUTIFUL_SOUP:
|
||||
self._log.warn(u'To use the google lyrics source, you must '
|
||||
u'install the beautifulsoup4 module. See the '
|
||||
u'documentation for further details.')
|
||||
available_sources.remove('google')
|
||||
sources.remove('google')
|
||||
|
||||
self.config['bing_lang_from'] = [
|
||||
x.lower() for x in self.config['bing_lang_from'].as_str_seq()]
|
||||
|
|
@ -626,7 +626,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
u'documentation for further details.')
|
||||
|
||||
self.backends = [self.SOURCE_BACKENDS[source](self.config, self._log)
|
||||
for source in sources if source in available_sources]
|
||||
for source in sources]
|
||||
|
||||
def get_bing_access_token(self):
|
||||
params = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue