diff --git a/i3pystatus/mpd.py b/i3pystatus/mpd.py index 3f64fdd..219b145 100644 --- a/i3pystatus/mpd.py +++ b/i3pystatus/mpd.py @@ -133,7 +133,10 @@ cleartext to the server.)"), try: status = self._mpd_command(self.s, "status") playback_state = status["state"] - currentsong = self._mpd_command(self.s, "currentsong") + if playback_state == "stop": + currentsong = {} + else: + currentsong = self._mpd_command(self.s, "currentsong") except Exception: if self.hide_inactive: self.output = {