mirror of
https://github.com/beetbox/beets.git
synced 2025-12-12 11:36:27 +01:00
Merge pull request #2175 from tarruda/mpdupdate-use-mpd_host
mpdupdate: Use `$MPD_HOST` environment variable.
This commit is contained in:
commit
c872adf5ca
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