mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
mpdupdate: Support $MPD_HOST environment variable.
This environment variable is also used by mpc. See http://linux.die.net/man/1/mpc for details.
This commit is contained in:
parent
5592499b31
commit
9963fd0432
2 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ class MPDUpdatePlugin(BeetsPlugin):
|
|||
def __init__(self):
|
||||
super(MPDUpdatePlugin, self).__init__()
|
||||
config['mpd'].add({
|
||||
'host': u'localhost',
|
||||
'host': os.environ.get('MPD_HOST', u'localhost'),
|
||||
'port': 6600,
|
||||
'password': u'',
|
||||
})
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Configuration
|
|||
The available options under the ``mpd:`` section are:
|
||||
|
||||
- **host**: The MPD server name.
|
||||
Default: ``localhost``.
|
||||
Default: The ``$MPD_HOST`` environment variable if set, falling back to ``localhost`` otherwise.
|
||||
- **port**: The MPD server port.
|
||||
Default: 6600.
|
||||
- **password**: The MPD server password.
|
||||
|
|
|
|||
Loading…
Reference in a new issue