From 6f893bd1bf9a19a1e5952d491dfcb23747741b17 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sat, 25 Dec 2021 18:03:46 +0700 Subject: [PATCH] fix item navigate on library albums --- src/renderer/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index 897ace01..8bd26b9b 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -1298,12 +1298,21 @@ const app = new Vue({ function downloadChunk() { 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) { - app.mk.api.library.albums("", { limit: 100 }, { includeResponseMeta: !0 }).then((response) => { + app.mk.api.library.albums("", params, { includeResponseMeta: !0 }).then((response) => { processChunk(response) }) } else { - downloaded.next("", { limit: 100 }, { includeResponseMeta: !0 }).then((response) => { + downloaded.next("", params, { includeResponseMeta: !0 }).then((response) => { processChunk(response) }) }