Merge pull request #74 from chme/spotify

fix delete query for removing files if a spotify playlist is deleted
This commit is contained in:
ejurgensen 2014-12-27 22:00:26 +01:00
commit a7ee8483b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;