remove limit in genre track list

This commit is contained in:
Thomas Amland
2020-12-13 12:08:38 +01:00
parent b65eb4580c
commit 181cd70bc6
2 changed files with 11 additions and 18 deletions
+3 -3
View File
@@ -126,11 +126,11 @@ export class API {
return (response.albumList2?.album || []).map(this.normalizeAlbum, this)
}
async getTracksByGenre(id: string) {
async getTracksByGenre(id: string, size: number, offset = 0) {
const params = {
genre: id,
count: 500,
offset: 0,
count: size,
offset,
}
const response = await this.get('rest/getSongsByGenre', params)
return (response.songsByGenre?.song || []).map(this.normalizeTrack, this)