go-subsonic icon indicating copy to clipboard operation
go-subsonic copied to clipboard

Add Support For .view Endpoints

Open LoganK opened this issue 2 years ago • 0 comments

While I'm not sure there's a definitive standard for Subsonic APIs, the .view suffix is often a component of it:

  • http://www.subsonic.org/pages/api.jsp - Seems to be implicit and only documented in the Authentication example
  • https://www.madsonic.org/pages/apiV2.jsp - Explicit

Servers:

  • Ampache: Only supports with the suffix: https://github.com/ampache/ampache/blob/develop/public/rest/.htaccess.dist
  • Navidrome: Supports both: https://github.com/navidrome/navidrome/blob/0c7c6ba02060c94302dedb649a8502a8f0da2991/server/subsonic/api.go#L232-L233

While I wouldn't propose changing the default behavior, it would be convenient to have the option. I should have a PR for you shortly.

LoganK avatar Dec 30 '22 23:12 LoganK