remove call to get starred albums. doesnt work

This commit is contained in:
Thomas Amland 2020-07-31 20:09:51 +02:00
parent 6886e2668b
commit 2d79cd5d6f

View File

@ -193,12 +193,9 @@ export class API {
} }
async getStarred() { async getStarred() {
const [tracks, albums] = await Promise.all([ return this
this.get("rest/getStarred2").then(r => this.normalizeTrackList(r.starred2.song)), .get("rest/getStarred2")
this.get("rest/getAlbumList2", { type: 'starred' }).then(r => r.albumList2), .then(r => this.normalizeTrackList(r.starred2.song))
this.get("rest/getAlbumList2", { type: 'starred' }).then(r => r.albumList2),
]);
return { tracks, albums }
} }
async star(type: 'track' | 'album' | 'artist', id: string) { async star(type: 'track' | 'album' | 'artist', id: string) {