Skip to content

Commit 8ed1f51

Browse files
committed
add: removeFromQueue support Local track, album URI
1 parent a375a93 commit 8ed1f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/preprocess/preprocess.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,12 @@ this.getAlbumTracks && this.removeTracksFromQueue && (Spicetify.removeFromQueue
498498
return;
499499
}
500500
501-
if (uriObj.type === Spicetify.URI.Type.ALBUM) {
501+
if (uriObj.type === Spicetify.URI.Type.ALBUM || uriObj.type === Spicetify.URI.Type.LOCAL_ALBUM) {
502502
const tracks = await getAlbumAsync(inputUri);
503503
tracks.forEach((trackUri) => {
504504
Spicetify.Queue.next_tracks.forEach((t, i) => t.uri == trackUri && indices.add(i))
505505
})
506-
} else if (uriObj.type === Spicetify.URI.Type.TRACK || uriObj.type === Spicetify.URI.Type.EPISODE) {
506+
} else if (uriObj.type === Spicetify.URI.Type.TRACK || uriObj.type === Spicetify.URI.Type.EPISODE || uriObj.type === Spicetify.URI.Type.LOCAL) {
507507
Spicetify.Queue.next_tracks.forEach((t, i) => t.uri == inputUri && indices.add(i))
508508
} else {
509509
console.error("Only Album, Track and Episode URIs are accepted. Skipped ", inputUri);

0 commit comments

Comments
 (0)