From 2c33ddc06034633367bb9cac7f1b6bf281b6bf21 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Fri, 16 Sep 2022 00:13:34 +0700 Subject: [PATCH] fields --- src/renderer/main/vueapp.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 6cc8bed9..bb3766e4 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -1944,7 +1944,13 @@ const app = new Vue({ types: "activities,albums,artists,editorial-items,music-movies,playlists,record-labels,songs,stations", }) ).data.results; - this.search.hints = hints ? hints.suggestions : []; + let shints = hints ? hints.suggestions : []; + for (item in shints){ + if ((shints[item]?.displayTerm ?? "").includes("?fields[")){ + shints[item].displayTerm = shints[item].searchTerm = shints[item].displayTerm.split('?fields[')[0] + } + } + this.search.hints = shints; }, getSongProgress() { if (this.playerLCD.userInteraction) {