fix item navigate on library albums
This commit is contained in:
parent
8e4f219000
commit
6f893bd1bf
1 changed files with 11 additions and 2 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue