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() {
const [tracks, albums] = await Promise.all([
this.get("rest/getStarred2").then(r => this.normalizeTrackList(r.starred2.song)),
this.get("rest/getAlbumList2", { type: 'starred' }).then(r => r.albumList2),
this.get("rest/getAlbumList2", { type: 'starred' }).then(r => r.albumList2),
]);
return { tracks, albums }
return this
.get("rest/getStarred2")
.then(r => this.normalizeTrackList(r.starred2.song))
}
async star(type: 'track' | 'album' | 'artist', id: string) {