mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 18:31:48 +01:00
lyrics: actually disable translation when there's no langdetect
This commit is contained in:
parent
c4b11f889f
commit
2928a16bd5
1 changed files with 1 additions and 1 deletions
|
|
@ -700,7 +700,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
|
||||
if lyrics:
|
||||
self._log.info(u'fetched lyrics: {0}', item)
|
||||
if self.config['bing_client_secret'].get():
|
||||
if HAS_LANGDETECT and self.config['bing_client_secret'].get():
|
||||
lang_from = langdetect.detect(lyrics)
|
||||
if self.config['bing_lang_to'].get() != lang_from and (
|
||||
not self.config['bing_lang_from'] or (
|
||||
|
|
|
|||
Loading…
Reference in a new issue