From 320831550302b16db7339c4974c5b945cc9067ef Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 27 Dec 2014 10:00:22 +0100 Subject: [PATCH] fix delete query for removing files if a spotify playlist is deleted --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index b3a8d46d..9354b58b 100644 --- a/src/db.c +++ b/src/db.c @@ -3340,7 +3340,7 @@ db_spotify_pl_delete(int id) { "DELETE FROM playlists WHERE id = %d;", "DELETE FROM playlistitems WHERE playlistid = %d;", - "DELETE FROM files WHERE path LIKE 'spotify:%%' AND NOT path IN (SELECT filepath FROM playlistitems WHERE id <> %d);", + "DELETE FROM files WHERE path LIKE 'spotify:%%' AND NOT path IN (SELECT filepath FROM playlistitems);", }; char *query; int i;