mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
mpdstats: use MPD_PORT env variable
This commit is contained in:
parent
7b910c3fde
commit
dc5f110844
2 changed files with 3 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ class MPDStatsPlugin(plugins.BeetsPlugin):
|
|||
'rating': True,
|
||||
'rating_mix': 0.75,
|
||||
'host': os.environ.get('MPD_HOST', u'localhost'),
|
||||
'port': 6600,
|
||||
'port': int(os.environ.get('MPD_PORT', 6600)),
|
||||
'password': u'',
|
||||
})
|
||||
mpd_config['password'].redact = True
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ configuration file. The available options are:
|
|||
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.
|
||||
- **music_directory**: If your MPD library is at a different location from the
|
||||
|
|
|
|||
Loading…
Reference in a new issue