radio page overhauled

Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
Core 2022-09-14 01:00:29 +01:00
parent d7dd447e7a
commit 1b5ae2177e
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
2 changed files with 86 additions and 27 deletions

View file

@ -45,10 +45,7 @@ const app = new Vue({
browsepage: [],
listennow: [],
madeforyou: [],
radio: {
"editorial": [],
"recent": [],
},
radio: [],
mklang: "en",
webview: {
url: "",
@ -3017,29 +3014,17 @@ const app = new Vue({
name: "radio",
"omit[resource:artists]": "relationships",
"include[albums]": "artists",
"include[music-videos]": "artists",
"include[songs]": "artists",
"include[stations]": "events",
extend: "artistUrl,editorialArtwork",
"include[music-videos]": "artists",
extend: "editorialArtwork,artistUrl",
"fields[artists]": "name,url,artwork,editorialArtwork,genreNames,editorialNotes",
"format[resources]": "map",
"art[url]": "f",
l: app.mklang
l: app.mklang,
}).then((radio) => {
app.radio.editorial = radio.data.resources
app.radio = radio.data.data[0];
console.debug(app.radio);
})
app.mk.api.v3.music(`/v1/me/recent/radio-stations`, {
"platform": "web",
"art[url]": "f",
"format[resources]": "map",
l: app.mklang
}).then((radio) => {
app.radio.recent = radio.data
console.debug(app.radio);
})
this.radio.timestamp = Date.now();
} catch (e) {
console.log(e);