From b8fef4f8f760bdfb29ff2e65949fa6c9ba2991b0 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Sat, 7 May 2022 06:54:23 +0100 Subject: [PATCH] Does this make a difference --- src/renderer/main/vueapp.js | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index f0e271bb..41f48bf3 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -2543,28 +2543,21 @@ const app = new Vue({ } try { 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.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 - }).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.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", - }).then(res => { - this.radio.amlive.data = res.data.data - }) + }).data.data this.radio.timestamp = Date.now() console.debug(this.radio)