Fixed all the stupid shit

This commit is contained in:
Core 2022-05-12 19:32:27 +01:00
parent 35438b9d1e
commit d2a7698d49
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 75 additions and 39 deletions

View file

@ -2534,38 +2534,6 @@ const app = new Vue({
this.getBrowsePage(attempt + 1)
}
},
async getRadioStations(attempt = 0) {
if (this.radio.timestamp > Date.now() - 120000) {
return
}
if (attempt > 3) {
return
}
try {
this.radio.personal.title = app.getLz('term.personalStations')
this.radio.personal.data = (await app.mk.api.v3.music(`/v1/catalog/${app.mk.api.v3.storefrontId}/stations`, {
"filter[identity]": "personal",
})).data.data
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",
"art[url]": "f",
l: this.mklang
})).data.data
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",
})).data.data
this.radio.timestamp = Date.now()
console.debug(this.radio)
} catch (e) {
console.log(e)
this.getRadioStations(attempt + 1)
}
},
async getMadeForYou(attempt = 0) {
if (attempt > 3) {
return