From a4973407e435524296919993594c958f0d9ed0c9 Mon Sep 17 00:00:00 2001 From: coredev-uk Date: Wed, 14 Sep 2022 00:02:13 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/renderer/main/vueapp.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index bffa034c..f485c405 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -781,7 +781,6 @@ const app = new Vue({ // Restore mk - // load cached library let librarySongs = await CiderCache.getCache("library-songs"); let libraryAlbums = await CiderCache.getCache("library-albums"); @@ -3009,21 +3008,23 @@ const app = new Vue({ return; } try { - app.mk.api.v3.music(`/v1/editorial/${app.mk.storefrontId}/groupings`, { - platform: "web", - name: "radio", - "omit[resource:artists]": "relationships", - "include[albums]": "artists", - "include[songs]": "artists", - "include[music-videos]": "artists", - extend: "editorialArtwork,artistUrl", - "fields[artists]": "name,url,artwork,editorialArtwork,genreNames,editorialNotes", - "art[url]": "f", - l: app.mklang, - }).then((radio) => { - app.radio = radio.data.data[0]; - console.debug(app.radio); - }) + app.mk.api.v3 + .music(`/v1/editorial/${app.mk.storefrontId}/groupings`, { + platform: "web", + name: "radio", + "omit[resource:artists]": "relationships", + "include[albums]": "artists", + "include[songs]": "artists", + "include[music-videos]": "artists", + extend: "editorialArtwork,artistUrl", + "fields[artists]": "name,url,artwork,editorialArtwork,genreNames,editorialNotes", + "art[url]": "f", + l: app.mklang, + }) + .then((radio) => { + app.radio = radio.data.data[0]; + console.debug(app.radio); + }); this.radio.timestamp = Date.now(); } catch (e) {