diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js
index 877789a0..89ddf4f8 100644
--- a/src/renderer/main/vueapp.js
+++ b/src/renderer/main/vueapp.js
@@ -2919,6 +2919,7 @@ const app = new Vue({
"include[albums]": "artists",
"include[songs]": "artists",
"include[music-videos]": "artists",
+ "include[personal-recommendation]": "primary-content",
"fields[albums]": ["artistName", "artistUrl", "artwork", "contentRating", "editorialArtwork", "editorialVideo", "name", "playParams", "releaseDate", "url"],
"fields[artists]": ["name", "url", "artwork"],
"extend[stations]": ["airDate", "supportsAirTimeUpdates"],
diff --git a/src/renderer/views/components/listennow-child.ejs b/src/renderer/views/components/listennow-child.ejs
index e6621024..c2321d66 100644
--- a/src/renderer/views/components/listennow-child.ejs
+++ b/src/renderer/views/components/listennow-child.ejs
@@ -2,8 +2,9 @@
-
-
{{ recom.attributes.title ? recom.attributes.title.stringForDisplay : " "}}
+
+
+ {{ recom.attributes.title ? recom.attributes.title.stringForDisplay : " "}}
@@ -44,27 +45,37 @@
app.showCollection(recom.relationships.contents, recom.attributes.title ? recom.attributes.title.stringForDisplay : '', 'listen_now')
},
navigateContent: async function (id) {
- try{
- let a = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[albums]=${id}`)
- let q1 = a.data?.data[0]
- if (q1) {
- app.routeView(q1)
- } else {
+
+ if (typeof id != "string") {
+ app.routeView(id)
+ } else {
+ try{
+ let a = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[albums]=${id}`)
+ let q1 = a.data?.data[0]
+ if (q1) {
+ app.routeView(q1)
+ } else {
+ let b = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[artists]=${id}`)
+ let q2 = b.data?.data[0]
+ if (q2) {
+ app.routeView(q2)
+ } else {
+ let c = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[playlists]=${id}`)
+ let q3 = c.data?.data[0]
+ if (q3) {
+ app.routeView(q3)
+ }
+ }
+ }
+ } catch (e) {
let b = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[artists]=${id}`)
let q2 = b.data?.data[0]
if (q2) {
app.routeView(q2)
}
}
- } catch (e) {
- let b = await app.mk.api.v3.music(`/v1/catalog/${app.mk.storefrontId}?ids[artists]=${id}`)
- let q2 = b.data?.data[0]
- if (q2) {
- app.routeView(q2)
- }
}
-
}
}
})