feat: My server, browse and play a Navidrome library

Adds a "My server" sidebar item (⌘5) for Navidrome and other
Subsonic-compatible servers: albums, artists, playlists, starred songs
and search, with album, artist and playlist pages. Server songs share the
player and queue with Yandex tracks and scrobble back to the server.

- New subsonic-api crate: token auth, envelope and error parsing, and a
  stream plan that keeps files the player decodes and asks the server to
  transcode the rest to MP3.
- ym_api::Track gains a Subsonic source; the player fetches, reports and
  scrobbles by source. Server errors never sign out of Yandex, and the
  Yandex client never fetches server audio or covers.
- Server credentials live in the keychain; connect and disconnect from
  the page or Settings.
- Server tracks have no likes; lyrics come from LRCLIB.
This commit is contained in:
yuriy.p committed 2026-11-16 12:21:02 +06:00
1 parent 391a554736
commit 5dbdc04cd4
32 files changed
+2906 -150

No files matched your search

+2 -2
View File
@@ -55,14 +55,14 @@ pub(crate) async fn lyrics(http: &reqwest::Client, track: &Track) -> Result<Opti
let Some(artist) = track.artists.first().map(|a| a.name.as_str()) else { return Ok(None) };
let secs = track.duration.as_secs_f64();
if let Some(album) = &track.album
if let Some(album) = track.album_title()
&& secs > 0.0
{
let duration = secs.round().to_string();
let query = [
("track_name", track.title.as_str()),
("artist_name", artist),
("album_name", album.title.as_str()),
("album_name", album),
("duration", duration.as_str()),
];
if let Some(record) = get::<Record>(http, "get", &query).await?