plsplsplspls
This commit is contained in:
parent
c0c12bc2ba
commit
0921ef80bf
1 changed files with 7 additions and 13 deletions
|
@ -2541,29 +2541,23 @@ const app = new Vue({
|
|||
return
|
||||
}
|
||||
try {
|
||||
this.radio.personal.title = app.getLz('term.personal')
|
||||
this.radio.personal.title = app.getLz('term.personalStations')
|
||||
this.radio.recent.title = app.getLz('term.recentStations')
|
||||
this.radio.amlive.title = app.getLz('term.amLive')
|
||||
|
||||
app.mk.api.v3.music(`/v1/catalog/${app.mk.api.v3.storefrontId}/stations`, {
|
||||
this.radio.personal.data = await app.mk.api.v3.music(`/v1/catalog/${app.mk.api.v3.storefrontId}/stations`, {
|
||||
"filter[identity]": "personal",
|
||||
}).then(res => {
|
||||
this.radio.personal.data = res.data.data
|
||||
})
|
||||
}).data.data
|
||||
|
||||
app.mk.api.v3.music(`/v1/me/recent/radio-stations`, {
|
||||
this.radio.recent.data = await app.mk.api.v3.music(`/v1/me/recent/radio-stations`, {
|
||||
"platform": "web",
|
||||
"art[url]": "f",
|
||||
l: this.mklang
|
||||
}).then(res => {
|
||||
this.radio.recent.data = res.data.data
|
||||
})
|
||||
}).data.data
|
||||
|
||||
app.mk.api.v3.music(`/v1/catalog/${app.mk.api.v3.storefrontId}/stations`, {
|
||||
this.radio.amlive.data = await app.mk.api.v3.music(`/v1/catalog/${app.mk.api.v3.storefrontId}/stations`, {
|
||||
"filter[featured]": "apple-music-live-radio",
|
||||
}).then(res => {
|
||||
this.radio.amlive.data = res.data.data
|
||||
})
|
||||
}).data.data
|
||||
|
||||
this.radio.timestamp = Date.now()
|
||||
console.debug(this.radio)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue