Spotify: grey when closed or paused outside services

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 10:17:58 -04:00
co-authored by Claude Opus 5.5
parent 1eb9247ade
commit bdec4251d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -431,7 +431,7 @@ def check_spotify(chk, snap, ctx):
return [("spotify", Result(OK))] # not read yet
state = "CLOSED" if not sp_.get("running") else (sp_.get("state") or "?").upper()
if not in_windows(chk.get("windows", []), ctx["now"]):
return [("spotify", Result(OK, info=state))]
return [("spotify", Result(OK if state == "PLAYING" else OFF, info=state))] # grey when not playing
if not sp_.get("running"):
return [("spotify", Result(ERR, "SPOTIFY CLOSED", named=True))]
if state != "PLAYING":