From 30bca5c8af108656325583a79eeba808661b5d07 Mon Sep 17 00:00:00 2001 From: wordofglass Date: Mon, 18 Apr 2016 11:39:09 +0200 Subject: [PATCH] fix unconditionally printing the personal key warning for in fanart.tv in fetchart --- beetsplug/fetchart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 1f6605608..43da905fd 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -679,15 +679,15 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin): if not self.config['google_key'].get() and \ u'google' in available_sources: available_sources.remove(u'google') + sources_name = plugins.sanitize_choices( + self.config['sources'].as_str_seq(), available_sources) if not self.config['fanarttv_key'].get() and \ - u'fanarttv' in available_sources: + u'fanarttv' in sources_name: self._log.warn( u'fanart.tv source enabled, but no personal API given. This ' u'works as of now, however, fanart.tv prefers users to ' u'register a personal key. Additionaly this makes new art ' u'available shorter after its upload. See the documentation.') - sources_name = plugins.sanitize_choices( - self.config['sources'].as_str_seq(), available_sources) if 'remote_priority' in self.config: self._log.warning( u'The `fetch_art.remote_priority` configuration option has '