mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 00:15:20 +01:00
Merge pull request #3223 from arcresu/mpd-port
mpdupdate, mpdstats: use MPD_PORT env variable
This commit is contained in:
commit
1edd21fab1
5 changed files with 9 additions and 4 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -81,6 +81,9 @@ New features:
|
|||
to be displayed.
|
||||
Thanks to :user:`pprkut`.
|
||||
:bug:`3089`
|
||||
* :doc:`/plugins/mpdstats`, :doc:`/plugins/mpdupdate`: Use the ``MPD_PORT``
|
||||
environment variable if no port is specified in the configuration file.
|
||||
:bug:`3223`
|
||||
* :doc:`/plugins/bpd`: MPD protocol commands ``consume`` and ``single`` are now
|
||||
supported along with updated semantics for ``repeat`` and ``previous`` and
|
||||
new fields for ``status``. The bpd server now understands and ignores some
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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