Add spotify queue
Deploy HEOS panel / deploy (push) Successful in 30s

This commit is contained in:
franzz committed 2026-10-20 15:44:56 +02:00
1 parent 6c76121863
commit 6bee9bd9a3
13 files changed
+230 -5

No files matched your search

+6
View File
@@ -186,6 +186,12 @@ class SpotifyClient:
playback() first rather than pausing on spec."""
self._call("PUT", "/v1/me/player/pause")
def queue(self) -> list:
"""What this account plays next, in order: whatever was queued by
hand first, then the rest of the album or playlist. Spotify sends
one page of it, about twenty items, and has no way to ask for fewer."""
return self._call("GET", "/v1/me/player/queue").get("queue") or []
def seek(self, position_ms: int):
"""Jump to position_ms in whatever the account is playing, on
whichever device is playing it."""