OpenSubsonic: playback, covers, lists and search #13

Merged
squid merged 1 commit from feat/opensubsonic-media into main 2026-11-16 08:45:31 +00:00
Owner

Closes #9

Apps can now play and show covers.

  • stream and download send the original file, with Range and HEAD. The address carries the device password, so the answer says Referrer-Policy: no-referrer.
  • getCoverArt for an album, an artist or the album of a song; 300 pixels or less is the small picture.
  • getAlbumList2: random, newest, frequent, recent, starred (always empty), alphabeticalByName, alphabeticalByArtist, byYear, byGenre.
  • getRandomSongs, getSongsByGenre, search3 (an app may ask for up to 500 of each, read page by page), getStarred2, and star, unstar, setRating that do nothing.
  • Checked: Go tests with -race on SQLite, storage/api/opensubsonic/catalog on PostgreSQL, an end-to-end test of covers and songs over /rest, and an independent Subsonic client library against a running server (lists, search, Range).
Closes #9 Apps can now play and show covers. - `stream` and `download` send the original file, with Range and HEAD. The address carries the device password, so the answer says `Referrer-Policy: no-referrer`. - `getCoverArt` for an album, an artist or the album of a song; 300 pixels or less is the small picture. - `getAlbumList2`: random, newest, frequent, recent, starred (always empty), alphabeticalByName, alphabeticalByArtist, byYear, byGenre. - `getRandomSongs`, `getSongsByGenre`, `search3` (an app may ask for up to 500 of each, read page by page), `getStarred2`, and `star`, `unstar`, `setRating` that do nothing. - Checked: Go tests with -race on SQLite, storage/api/opensubsonic/catalog on PostgreSQL, an end-to-end test of covers and songs over `/rest`, and an independent Subsonic client library against a running server (lists, search, Range).
Apps can play and browse: stream and download send the original file (Range,
HEAD), getCoverArt serves the cover of an album, an artist or the album of a
song (300 pixels or less is the small one), getAlbumList2 knows every kind of
list, getRandomSongs and getSongsByGenre list songs, search3 finds artists,
albums and songs, and the starred calls answer with nothing so apps do not break.

- catalog.Filter has IDs to read albums and songs by id
- storage.SubsonicRepo answers the album and song lists (random, newest,
  frequent, recent, by name, by artist, by year, by genre)
squid merged commit 2cb67b1bdc into main 2026-11-16 08:45:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
squid/sonda!13
No description provided.