Spotify: grey when closed or paused outside services
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user