From 8ed1f51e2276f70118ffe5fc2e5f0243e013dda8 Mon Sep 17 00:00:00 2001 From: khanhas Date: Wed, 20 Mar 2019 00:07:00 +1000 Subject: [PATCH] add: removeFromQueue support Local track, album URI --- src/preprocess/preprocess.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preprocess/preprocess.go b/src/preprocess/preprocess.go index e8686640e0..2ed3cf17b8 100644 --- a/src/preprocess/preprocess.go +++ b/src/preprocess/preprocess.go @@ -498,12 +498,12 @@ this.getAlbumTracks && this.removeTracksFromQueue && (Spicetify.removeFromQueue return; } - if (uriObj.type === Spicetify.URI.Type.ALBUM) { + if (uriObj.type === Spicetify.URI.Type.ALBUM || uriObj.type === Spicetify.URI.Type.LOCAL_ALBUM) { const tracks = await getAlbumAsync(inputUri); tracks.forEach((trackUri) => { Spicetify.Queue.next_tracks.forEach((t, i) => t.uri == trackUri && indices.add(i)) }) - } else if (uriObj.type === Spicetify.URI.Type.TRACK || uriObj.type === Spicetify.URI.Type.EPISODE) { + } else if (uriObj.type === Spicetify.URI.Type.TRACK || uriObj.type === Spicetify.URI.Type.EPISODE || uriObj.type === Spicetify.URI.Type.LOCAL) { Spicetify.Queue.next_tracks.forEach((t, i) => t.uri == inputUri && indices.add(i)) } else { console.error("Only Album, Track and Episode URIs are accepted. Skipped ", inputUri);