mirror of
https://github.com/beetbox/beets.git
synced 2026-01-18 14:11:35 +01:00
Config: Add redacted fields from included plugins
This commit is contained in:
parent
778138f2cd
commit
f4ed3e16b1
3 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue