made for you page
This commit is contained in:
parent
60221d5e01
commit
7f3e455b78
6 changed files with 41 additions and 2 deletions
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue