[modules/mpd] Small array vs. dict fix
This commit is contained in:
parent
1238914fd9
commit
47bb8b1f80
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Module(bumblebee.engine.Module):
|
||||||
def _load_song(self):
|
def _load_song(self):
|
||||||
info = ""
|
info = ""
|
||||||
try:
|
try:
|
||||||
tags = {'name',
|
tags = ['name',
|
||||||
'artist',
|
'artist',
|
||||||
'album',
|
'album',
|
||||||
'albumartist',
|
'albumartist',
|
||||||
|
@ -97,7 +97,7 @@ class Module(bumblebee.engine.Module):
|
||||||
'id',
|
'id',
|
||||||
'prio',
|
'prio',
|
||||||
'mtime',
|
'mtime',
|
||||||
'mdate'}
|
'mdate']
|
||||||
joinedtags = "\n".join(["tag {0} %{0}%".format(tag) for tag in tags])
|
joinedtags = "\n".join(["tag {0} %{0}%".format(tag) for tag in tags])
|
||||||
info = bumblebee.util.execute('mpc -f ' + '"' + joinedtags + '"' + self._hostcmd)
|
info = bumblebee.util.execute('mpc -f ' + '"' + joinedtags + '"' + self._hostcmd)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
|
Loading…
Reference in a new issue