Merge pull request #74 from chme/spotify
fix delete query for removing files if a spotify playlist is deleted
This commit is contained in:
commit
a7ee8483b4
2
src/db.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue