diff --git a/src/mpdnotify.py b/src/mpdnotify.py index 2a46084..2d1dc1a 100644 --- a/src/mpdnotify.py +++ b/src/mpdnotify.py @@ -147,8 +147,10 @@ class Notifier(object): def bind_keys(self): def playpause(): status = self.client.status() - pause = int(status['state'] == 'play') - self.client.pause(pause) + if status['state'] == 'stop': + self.client.play() + else: + self.client.pause() def volume_down(): status = self.client.status()