remove parameters from getArtists request. does nothing
This commit is contained in:
parent
5bca8cd69c
commit
9feae7ed44
@ -70,13 +70,8 @@ export class API {
|
||||
}
|
||||
}
|
||||
|
||||
async getArtists(offset: any = 0, size: any = 400) {
|
||||
const params = {
|
||||
type: "random",
|
||||
offset,
|
||||
size,
|
||||
};
|
||||
const data = await this.get("rest/getArtists", params);
|
||||
async getArtists() {
|
||||
const data = await this.get("rest/getArtists");
|
||||
return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({
|
||||
id: artist.id,
|
||||
name: artist.name,
|
||||
@ -84,7 +79,6 @@ export class API {
|
||||
})));
|
||||
}
|
||||
|
||||
|
||||
async getAlbums(sort: AlbumSort, size: number = 500) {
|
||||
const params = {
|
||||
type: sort,
|
||||
|
Loading…
x
Reference in New Issue
Block a user