From 0921ef80bff3f8a252dac39c4f9acad252a09a72 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Sat, 7 May 2022 06:48:42 +0100 Subject: [PATCH] plsplsplspls --- src/renderer/main/vueapp.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index a99b0b44..e31f4241 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -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)