Pagination of results in genres in Subsonic API does not work
Steps to reproduce
- Open DSub client.
- Browse by genre.
- Scroll down to load next section of results.
What happens?
API returns the same 20 results every time.
What is expected?
API should return the next set of results.
Context
Funkwhale version(s) affected: 0.20.0
API logs:
nginx_1 | <home ip> - <username> [23/Oct/2019:13:38:54 +0000] "GET /rest/getSongsByGenre.view?u=<username>&s=<something>&t=<something>&v=1.2.0&c=DSub&genre=Electronic&count=20&offset=0 HTTP/1.1" 200 7142 "-" "DSub" "<home ip>"
api_1 | [2019-10-23 13:39:00 +0000] [12] [INFO] ('172.16.4.7', 43168) - "GET /api/subsonic/rest/getSongsByGenre.view?u=<username>&s=<something>&t=<something>&v=1.2.0&c=DSub&genre=Electronic&count=20&offset=20 HTTP/1.1" 200
nginx_1 | <home ip> - <username> [23/Oct/2019:13:39:00 +0000] "GET /rest/getSongsByGenre.view?u=<username>&s=<something>&t=<something>&v=1.2.0&c=DSub&genre=Electronic&count=20&offset=20 HTTP/1.1" 200 7142 "-" "DSub" "<home ip>"
api_1 | [2019-10-23 13:39:03 +0000] [12] [INFO] ('172.16.4.7', 43196) - "GET /api/subsonic/rest/getSongsByGenre.view?u=<username>&s=<something>&t=<something>&v=1.2.0&c=DSub&genre=Electronic&count=20&offset=40 HTTP/1.1" 200
nginx_1 | <home ip> - <username> [23/Oct/2019:13:39:03 +0000] "GET /rest/getSongsByGenre.view?u=<username>&s=<something>&t=<something>&v=1.2.0&c=DSub&genre=Electronic&count=20&offset=40 HTTP/1.1" 200 7142 "-" "DSub" "<home ip>"
When doing this manually, we get the same XML results every time.