Skip to content

Commit 36e7a20

Browse files
committed
Tweaks for first release version
1 parent 8a13659 commit 36e7a20

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ python:
44
install:
55
- pip install --upgrade pip
66
- pip install -e .
7+
script:
8+
- echo
79
deploy:
810
provider: pypi
911
user: cumbottler

beetsplug/mpdqueue.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ class MPDQueuePlugin(BeetsPlugin):
108108

109109
def __init__(self):
110110
super(MPDQueuePlugin, self).__init__()
111+
config['mpd'].add({
112+
'host': os.environ.get('MPD_HOST', 'localhost'),
113+
'port': 6600,
114+
'password': '',
115+
})
111116
config['mpd']['password'].redact = True
112117

113118
self.files = []
@@ -147,9 +152,9 @@ def update_queue(self, lib):
147152
self._log.debug(u'No files to add to queue')
148153
return
149154

150-
host = config['mpd']['host'].get()
155+
host = config['mpd']['host'].as_str()
151156
port = config['mpd']['port'].get(int)
152-
password = config['mpd']['password'].get()
157+
password = config['mpd']['password'].as_str()
153158
client = MusicPlayerDaemonClient(host, port, password)
154159

155160
directories = set()

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
setup(
55
name="beets-mpdqueue",
66
version="0.1",
7+
description='Beets plugin to add imported files to MPD queue.',
8+
url='https://github.com/Hamuko/beets-mpdqueue',
9+
author='Hamuko',
10+
author_email='[email protected]',
11+
license='Apache2',
712
packages=find_packages(),
813
)

0 commit comments

Comments
 (0)