[modules/mpd] Small array vs. dict fix

This commit is contained in:
Tobias Witek 2019-12-26 14:01:16 +01:00
parent 1238914fd9
commit 47bb8b1f80

View file

@ -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: