- getOpenSubsonicExtensions answers, without credentials, as the spec requires of a server that says openSubsonic=true; it lists apiKeyAuthentication. An apiKey sent with u is error 43 and an unknown apiKey error 44, the extension's codes; a wrong key still counts toward the sign-in throttle. - search3 with an empty query (or two quote marks) matches everything, paged in a stable order, so apps that keep a copy of the library (Symfonium) can download it. A page of songs reads its albums and artists in two queries, not two per song. - getAlbumList2 serves type=starred and highest (the listener's liked albums) and byYear (oldest first, newest first for a backwards range). - Internet radio, podcasts, bookmarks, shares, chat and now-playing answer with an empty list instead of "Method not implemented", so an app shows an empty tab rather than an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
684 B
Go
22 lines
684 B
Go
package subsonic
|
|
|
|
// Subsonic REST error codes per http://www.subsonic.org/pages/api.jsp §3.
|
|
// ErrTokenNotSupported (41) is reused for "this user has not enabled the
|
|
// requested auth mode" — the historical meaning ("LDAP users can't use
|
|
// token auth") is the closest analogue.
|
|
const (
|
|
ErrGeneric = 0
|
|
ErrMissingParameter = 10
|
|
ErrClientTooOld = 20
|
|
ErrServerTooOld = 30
|
|
ErrWrongCredentials = 40
|
|
ErrTokenNotSupported = 41
|
|
// OpenSubsonic apiKeyAuthentication: an apiKey sent with u, and an
|
|
// apiKey that matches no account.
|
|
ErrConflictingAuth = 43
|
|
ErrInvalidAPIKey = 44
|
|
ErrNotAuthorized = 50
|
|
ErrTrialExpired = 60
|
|
ErrDataNotFound = 70
|
|
)
|