0.2.0: play through Spotify Soloist
All checks were successful
release / release (push) Successful in 10m37s

Spotify refuses librespot the audio keys ("error audio key 0 1",
librespot #1649), so nothing played. Playback now goes through Spotify
Soloist, Spotify's own headless Linux player:

- The TV downloads it from Spotify (redistribution is not allowed), keeps
  it fresh (builds expire after 90 days), runs and restarts it, and drives
  it over its local WebSocket API; its events feed Most szól.
- It needs the user's own Soloist API key: the key screen shows a QR code
  to a small page on the TV where the phone pastes it (or type it on the
  TV); asked once after sign-in, also in Settings. Then the TV is picked
  once in the phone's Spotify app (pairing); home shows that step.
- Soloist is the Connect device; librespot only signs in (pairing code)
  and browses. Its player, Connect and zeroconf are gone, and with them
  GStreamer.
- A track from a list plays and the next ones are queued (Soloist's play
  takes one URI). The queue panel is back (Soloist reports the queue).
- Settings: the player's state and key instead of quality/normalisation/
  autoplay (Soloist decides those).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-03 21:50:44 +01:00
parent 5a76e56fe1
commit 7fd7e242a7
24 changed files with 1274 additions and 1268 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "spotify-tv"
description = "Spotify for Fennec OS: native TV client with Liquid Glass, Spotify Connect and librespot playback"
version = "0.1.1"
description = "Spotify for Fennec OS: native TV client with Liquid Glass; Spotify Soloist plays, librespot browses"
version = "0.2.0"
edition = "2024"
# sf-ui (and Slint) are GPL-3.0 on a TV box; librespot is MIT.
license = "GPL-3.0-only"
@@ -18,26 +18,21 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.9"
ureq = { version = "3", features = ["json"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "signal"] }
futures-util = { version = "0.3", default-features = false, features = ["std"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "signal", "process", "io-util", "net", "fs"] }
futures-util = { version = "0.3", default-features = false, features = ["std", "sink"] }
# The internal endpoints (playlists, collection) speak protobuf.
librespot-protocol = "0.8"
protobuf = "3"
hyper = { version = "1", default-features = false }
# The pairing QR code on the sign-in screen.
qrcode = { version = "0.14", default-features = false }
# Spotify: session, Connect (Spirc), zeroconf sign-in, playback.
# Spotify: the session (sign-in, browsing, lyrics) and its metadata.
librespot-core = { version = "0.8", default-features = false, features = ["rustls-tls-webpki-roots"] }
librespot-connect = { version = "0.8", default-features = false, features = ["rustls-tls-webpki-roots"] }
librespot-discovery = { version = "0.8", default-features = false, features = ["with-libmdns"] }
librespot-metadata = { version = "0.8", default-features = false }
# Sound: GStreamer on the TV (PipeWire), rodio elsewhere (UI work on Windows).
[target.'cfg(target_os = "linux")'.dependencies]
librespot-playback = { version = "0.8", default-features = false, features = ["gstreamer-backend", "rustls-tls-webpki-roots"] }
[target.'cfg(not(target_os = "linux"))'.dependencies]
librespot-playback = { version = "0.8", default-features = false, features = ["rodio-backend", "rustls-tls-webpki-roots"] }
# Playback: Spotify Soloist (downloaded on the TV), driven over its local WebSocket.
tokio-tungstenite = { version = "0.28", default-features = false, features = ["connect"] }
flate2 = "1"
tar = "0.4"
[build-dependencies]
slint-build = "1.18"