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
+6 -2
View File
@@ -23,11 +23,15 @@ func (s *subsonicMediaProvider) SearchAll(searchQuery string, maxResults int) ([
wg.Add(1)
go func() {
count := strconv.Itoa(maxResults / 3)
res, e := s.client.Search3(searchQuery, map[string]string{
params := map[string]string{
"artistCount": count,
"albumCount": count,
"songCount": count,
})
}
if s.currentLibraryID != "" {
params["musicFolderId"] = s.currentLibraryID
}
res, e := s.client.Search3(searchQuery, params)
if e != nil {
err = e
} else {