Config: Add redacted fields from included plugins

This commit is contained in:
Tom Jaspers 2015-03-24 17:01:33 +01:00
parent 778138f2cd
commit f4ed3e16b1
3 changed files with 3 additions and 0 deletions

View file

@ -56,6 +56,7 @@ class DiscogsPlugin(BeetsPlugin):
'tokenfile': 'discogs_token.json',
'source_weight': 0.5,
})
self.config.add_redacted_fields(['apikey', 'apisecret'])
self.discogs_client = None
self.register_listener('import_begin', self.setup)

View file

@ -135,6 +135,7 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin):
'truncate': True,
})
self.config.add(ATTRIBUTES)
self.config.add_redacted_fields(['apikey'])
pyechonest.config.ECHO_NEST_API_KEY = \
self.config['apikey'].get(unicode)

View file

@ -463,6 +463,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
'force': False,
'sources': self.SOURCES,
})
self.config.add_redacted_fields(['google_API_key', 'google_engine_ID'])
available_sources = list(self.SOURCES)
if not self.config['google_API_key'].get() and \