mpd: use empty dict on stopped playback state
@@ -133,6 +133,9 @@ cleartext to the server.)"),
try:
status = self._mpd_command(self.s, "status")
playback_state = status["state"]
+ if playback_state == "stop":
+ currentsong = {}
+ else:
currentsong = self._mpd_command(self.s, "currentsong")
except Exception:
if self.hide_inactive:
