implement library browsing for Subsonic

This commit is contained in:
Drew Weymouth
2025-07-12 12:43:55 -07:00
parent 9c56429ed4
commit d701375d35
9 changed files with 99 additions and 22 deletions
+9
View File
@@ -197,6 +197,15 @@ type Server interface {
type MediaProvider interface {
SetPrefetchCoverCallback(cb func(coverArtID string))
// GetLibraries gets the list of top-level music libraries
// (musicFolders in Subsonic)
GetLibraries() ([]Library, error)
// SetLibrary sets the current library that all other
// MediaProvider API calls will filter to. Use empty string
// to reset to all libraries.
SetLibrary(id string) error
GetTrack(trackID string) (*Track, error)
GetAlbum(albumID string) (*AlbumWithTracks, error)