Favourites in the API and in OpenSubsonic apps #17

Merged
squid merged 1 commit from feat/favorites-api into main 2026-11-16 09:51:38 +00:00
Owner

Closes #15

I can mark songs, albums and artists as favourites. They are mine alone: never shown to a friend and never sent anywhere. Only music that can be played is listed.

  • Migration 0035, internal/favorites, PUT/DELETE /me/favorites/{kind}/{id}, GET /me/favorites/{kind} (newest first, same shape as the catalogue lists) and GET /me/favorites/ids.
  • OpenSubsonic: star, unstar, getStarred2, a starred date on songs, albums and artists, and getAlbumList2 of type starred. setRating still does nothing.
  • Checked: Go tests with -race on SQLite, storage/api/opensubsonic/favorites on PostgreSQL, and an end-to-end test that a star in an app is a favourite in the web API and the other way round.
Closes #15 I can mark songs, albums and artists as favourites. They are mine alone: never shown to a friend and never sent anywhere. Only music that can be played is listed. - Migration 0035, `internal/favorites`, `PUT/DELETE /me/favorites/{kind}/{id}`, `GET /me/favorites/{kind}` (newest first, same shape as the catalogue lists) and `GET /me/favorites/ids`. - OpenSubsonic: `star`, `unstar`, `getStarred2`, a `starred` date on songs, albums and artists, and `getAlbumList2` of type `starred`. `setRating` still does nothing. - Checked: Go tests with -race on SQLite, storage/api/opensubsonic/favorites on PostgreSQL, and an end-to-end test that a star in an app is a favourite in the web API and the other way round.
A person can mark songs, albums and artists as favourites. They are theirs
alone: never shown to a friend, never sent anywhere. Only what can be played is
listed.

- migration 0035 favorites, internal/favorites, storage.FavoritesRepo
- PUT/DELETE /me/favorites/{kind}/{id}, GET /me/favorites/{kind} and
  GET /me/favorites/ids, in the OpenAPI spec
- catalog.Filter IDs now also reads artists by id
- OpenSubsonic: star, unstar, getStarred2, the starred date on songs, albums and
  artists, and getAlbumList2 of type starred
squid merged commit f7c24fa6f4 into main 2026-11-16 09:51:38 +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!17
No description provided.