Fix getSongsByGenre pagination. Fix #1640

This commit is contained in:
Deluan 2023-04-05 22:39:32 -04:00
parent ddfde7bfc8
commit ecac74c2bd
1 changed files with 1 additions and 1 deletions

View File

@ -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))