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) {
|
async getArtists() {
|
||||||
const params = {
|
const data = await this.get("rest/getArtists");
|
||||||
type: "random",
|
|
||||||
offset,
|
|
||||||
size,
|
|
||||||
};
|
|
||||||
const data = await this.get("rest/getArtists", params);
|
|
||||||
return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({
|
return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
@ -84,7 +79,6 @@ export class API {
|
|||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async getAlbums(sort: AlbumSort, size: number = 500) {
|
async getAlbums(sort: AlbumSort, size: number = 500) {
|
||||||
const params = {
|
const params = {
|
||||||
type: sort,
|
type: sort,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user