mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
mpdupdate: use MPD_PORT env variable
This commit is contained in:
parent
dc5f110844
commit
21cba304bd
2 changed files with 3 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ class MPDUpdatePlugin(BeetsPlugin):
|
|||
super(MPDUpdatePlugin, self).__init__()
|
||||
config['mpd'].add({
|
||||
'host': os.environ.get('MPD_HOST', u'localhost'),
|
||||
'port': 6600,
|
||||
'port': int(os.environ.get('MPD_PORT', 6600)),
|
||||
'password': u'',
|
||||
})
|
||||
config['mpd']['password'].redact = True
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ The available options under the ``mpd:`` section are:
|
|||
- **host**: The MPD server name.
|
||||
Default: The ``$MPD_HOST`` environment variable if set, falling back to ``localhost`` otherwise.
|
||||
- **port**: The MPD server port.
|
||||
Default: 6600.
|
||||
Default: The ``$MPD_PORT`` environment variable if set, falling back to 6600
|
||||
otherwise.
|
||||
- **password**: The MPD server password.
|
||||
Default: None.
|
||||
|
|
|
|||
Loading…
Reference in a new issue