mpd: use empty dict on stopped playback state (#721)
This commit is contained in:
parent
5d66539359
commit
4b6a6a68c9
@ -133,7 +133,10 @@ cleartext to the server.)"),
|
|||||||
try:
|
try:
|
||||||
status = self._mpd_command(self.s, "status")
|
status = self._mpd_command(self.s, "status")
|
||||||
playback_state = status["state"]
|
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:
|
except Exception:
|
||||||
if self.hide_inactive:
|
if self.hide_inactive:
|
||||||
self.output = {
|
self.output = {
|
||||||
|
Loading…
Reference in New Issue
Block a user