Merge pull request #64 from mekanix/master
Next song on right click in MPD.
This commit is contained in:
commit
7b36808b0b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user