made for you page

This commit is contained in:
vapormusic 2021-12-20 11:03:18 +07:00
parent 60221d5e01
commit 7f3e455b78
6 changed files with 41 additions and 2 deletions

View file

@ -131,6 +131,7 @@ const app = new Vue({
},
browsepage: [],
listennow: [],
madeforyou: [],
radio: {
personal: []
},
@ -1206,6 +1207,18 @@ const app = new Vue({
this.getRadioStations(attempt + 1)
}
},
async getMadeForYou(attempt = 0) {
if (attempt > 3) {
return
}
try {
mfu = await app.mk.api.v3.music("/v1/me/library/playlists?platform=web&extend=editorialVideo&fields%5Bplaylists%5D=lastModifiedDate&filter%5Bfeatured%5D=made-for-you&include%5Blibrary-playlists%5D=catalog&fields%5Blibrary-playlists%5D=artwork%2Cname%2CplayParams%2CdateAdded")
this.madeforyou = mfu.data
} catch (e) {
console.log(e)
this.getMadeForYou(attempt + 1)
}
},
unauthorize() {
this.mk.unauthorize()
},