mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 17:33:51 +01:00
expand '~' in host in mpdstats
This commit is contained in:
parent
15b6433db0
commit
97e4ccbbd9
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ class Client(object):
|
|||
"""
|
||||
host = config['mpd']['host'].get(unicode)
|
||||
port = config['mpd']['port'].get(int)
|
||||
|
||||
if host[0] in ['/', '~']:
|
||||
host = os.path.expanduser(host)
|
||||
|
||||
log.info(u'mpdstats: connecting to {0}:{1}'.format(host, port))
|
||||
try:
|
||||
self.client.connect(host, port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue