mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +01:00
Redact some passwords in plugins
This commit is contained in:
parent
b621fd439b
commit
07516b2bca
3 changed files with 3 additions and 0 deletions
|
|
@ -1153,6 +1153,7 @@ class BPDPlugin(BeetsPlugin):
|
||||||
'password': u'',
|
'password': u'',
|
||||||
'volume': VOLUME_MAX,
|
'volume': VOLUME_MAX,
|
||||||
})
|
})
|
||||||
|
self.config['password'].redact = True
|
||||||
|
|
||||||
def start_bpd(self, lib, host, port, password, volume, debug):
|
def start_bpd(self, lib, host, port, password, volume, debug):
|
||||||
"""Starts a BPD server."""
|
"""Starts a BPD server."""
|
||||||
|
|
|
||||||
|
|
@ -329,6 +329,7 @@ class MPDStatsPlugin(plugins.BeetsPlugin):
|
||||||
'port': 6600,
|
'port': 6600,
|
||||||
'password': u'',
|
'password': u'',
|
||||||
})
|
})
|
||||||
|
mpd_config['password'].redact = True
|
||||||
|
|
||||||
def commands(self):
|
def commands(self):
|
||||||
cmd = ui.Subcommand(
|
cmd = ui.Subcommand(
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ class MPDUpdatePlugin(BeetsPlugin):
|
||||||
'port': 6600,
|
'port': 6600,
|
||||||
'password': u'',
|
'password': u'',
|
||||||
})
|
})
|
||||||
|
config['mpd']['password'].redact = True
|
||||||
|
|
||||||
# For backwards compatibility, use any values from the
|
# For backwards compatibility, use any values from the
|
||||||
# plugin-specific "mpdupdate" section.
|
# plugin-specific "mpdupdate" section.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue