fix item navigate on library albums

This commit is contained in:
vapormusic 2021-12-25 18:03:46 +07:00
parent 8e4f219000
commit 6f893bd1bf

View file

@ -1298,12 +1298,21 @@ const app = new Vue({
function downloadChunk() { function downloadChunk() {
self.library.albums.downloadState = 1 self.library.albums.downloadState = 1
const params = {
"include[library-albums]": "catalog,artists,albums",
"fields[artists]": "name,url,id",
"fields[albums]": "name,url,id",
platform: "web",
"fields[catalog]": "artistUrl,albumUrl",
"fields[albums]": "artistName,artistUrl,artwork,contentRating,editorialArtwork,name,playParams,releaseDate,url",
limit: 100,
}
if (downloaded == null) { if (downloaded == null) {
app.mk.api.library.albums("", { limit: 100 }, { includeResponseMeta: !0 }).then((response) => { app.mk.api.library.albums("", params, { includeResponseMeta: !0 }).then((response) => {
processChunk(response) processChunk(response)
}) })
} else { } else {
downloaded.next("", { limit: 100 }, { includeResponseMeta: !0 }).then((response) => { downloaded.next("", params, { includeResponseMeta: !0 }).then((response) => {
processChunk(response) processChunk(response)
}) })
} }