From 3f51b05a1a845f646ff1319b8f60ab69870f29a9 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 13 Jan 2022 20:47:28 -0800 Subject: [PATCH] fix for library songs not picking the right tracks when using search, changed songs.listing to songs.displayListing --- src/renderer/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index fd897725..2f600323 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -2425,13 +2425,13 @@ const app = new Vue({ console.log(truekind, id) try { - if (app.library.songs.listing.length > childIndex && parent == "librarysongs") { + if (app.library.songs.displayListing.length > childIndex && parent == "librarysongs") { console.log(item) - if (item && ((app.library.songs.listing[childIndex].id != item.id))) { - childIndex = app.library.songs.listing.indexOf(item) + if (item && ((app.library.songs.displayListing[childIndex].id != item.id))) { + childIndex = app.library.songs.displayListing.indexOf(item) } - let query = app.library.songs.listing.map(item => new MusicKit.MediaItem(item)); + let query = app.library.songs.displayListing.map(item => new MusicKit.MediaItem(item)); app.mk.stop().then(() => {