Merge pull request #64 from mekanix/master

Next song on right click in MPD.
This commit is contained in:
enkore 2014-06-08 20:18:12 +02:00
commit 7b36808b0b

View File

@ -101,11 +101,6 @@ class MPD(IntervalModule):
def on_rightclick(self): def on_rightclick(self):
try: try:
vol = int(self._mpd_command(self.s, "status")["volume"]) self._mpd_command(self.s, "next")
if vol == 0:
self._mpd_command(self.s, "setvol %i" % self.vol)
else:
self.vol = vol
self._mpd_command(self.s, "setvol 0")
except Exception as e: except Exception as e:
pass pass