🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix getSongsByGenre pagination. Fix #1640
Deluanecac74c2bdce
diff --git a/server/subsonic/album_lists.go b/server/subsonic/album_lists.goindex 94f829c5e..7f1ecea6b 100644--- a/server/subsonic/album_lists.go+++ b/server/subsonic/album_lists.go@@ -182,7 +182,7 @@ func (api *Router) GetRandomSongs(r *http.Request) (*responses.Subsonic, error)func (api *Router) GetSongsByGenre(r *http.Request) (*responses.Subsonic, error) {count := number.Min(utils.ParamInt(r, "count", 10), 500)- offset := number.Min(utils.ParamInt(r, "offset", 0), 500)+ offset := utils.ParamInt(r, "offset", 0)genre := utils.ParamString(r, "genre")songs, err := api.getSongs(r.Context(), offset, count, filter.SongsByGenre(genre))