From 2928a16bd511e311decdabd900acc0b6f0e20007 Mon Sep 17 00:00:00 2001 From: wordofglass Date: Thu, 28 Apr 2016 17:22:55 +0200 Subject: [PATCH] lyrics: actually disable translation when there's no langdetect --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 072fd71ea..115707f80 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -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 (