Merge pull request #2175 from tarruda/mpdupdate-use-mpd_host

mpdupdate: Use `$MPD_HOST` environment variable.
This commit is contained in:
Nathan Dwek 2016-08-26 16:57:24 +02:00 committed by GitHub
commit c872adf5ca
2 changed files with 2 additions and 2 deletions

View file

@ -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'',
})

View file

@ -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.