From e8439092015da5c1e68d528f73fee92435e9eeb4 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Thu, 16 Dec 2021 14:01:49 +0700 Subject: [PATCH] fix this again --- resources/cider-ui/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/cider-ui/index.js b/resources/cider-ui/index.js index 34834e4d..2b49bce9 100644 --- a/resources/cider-ui/index.js +++ b/resources/cider-ui/index.js @@ -720,7 +720,13 @@ const app = new Vue({ ; let isLibrary = item.attributes.playParams ? (item.attributes.playParams.isLibrary ?? false) : false; console.log(kind, id, isLibrary) - app.playMediaItemById((id), (kind), (isLibrary), item.attributes.url ?? '') + if (kind.includes("artist")) { + app.mk.setStationQueue({ artist: 'a-' + id }).then(() => { + app.mk.play() + }) + } else { + app.playMediaItemById((id), (kind), (isLibrary), item.attributes.url ?? '') + } }, async getTypeFromID(kind, id, isLibrary = false, params = {}) { var a;