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