This commit is contained in:
vapormusic 2022-09-16 00:13:34 +07:00
parent 16b0b9e0a0
commit 2c33ddc060

View file

@ -1944,7 +1944,13 @@ const app = new Vue({
types: "activities,albums,artists,editorial-items,music-movies,playlists,record-labels,songs,stations", types: "activities,albums,artists,editorial-items,music-movies,playlists,record-labels,songs,stations",
}) })
).data.results; ).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() { getSongProgress() {
if (this.playerLCD.userInteraction) { if (this.playerLCD.userInteraction) {