From e7bba32a4440fec8a991e39e10ff6e8e99183226 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 29 Mar 2015 14:21:26 -0700 Subject: [PATCH] Redact some API keys --- beetsplug/chroma.py | 1 + beetsplug/lastimport.py | 1 + 2 files changed, 2 insertions(+) diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index 8a83c0002..f1ca233e0 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -133,6 +133,7 @@ class AcoustidPlugin(plugins.BeetsPlugin): self.config.add({ 'auto': True, }) + config['acoustid']['apikey'].redact = True if self.config['auto']: self.register_listener('import_task_start', self.fingerprint_task) diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index 0303db219..b614102fd 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -32,6 +32,7 @@ class LastImportPlugin(plugins.BeetsPlugin): 'user': '', 'api_key': '', }) + config['lastfm']['api_key'].redact = True self.config.add({ 'per_page': 500, 'retry_limit': 3,