fix for library songs not picking the right tracks when using search, changed songs.listing to songs.displayListing

This commit is contained in:
booploops 2022-01-13 20:47:28 -08:00
parent 04b68ba0a7
commit 3f51b05a1a

View file

@ -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(() => {