diff --git a/pikaraoke/app.py b/pikaraoke/app.py index 6405647..2645866 100644 --- a/pikaraoke/app.py +++ b/pikaraoke/app.py @@ -441,7 +441,8 @@ def start_song(): def delete_file(): if "song" in request.args: song_path = request.args["song"] - if song_path in k.queue: + exists = any(item.get('file') == song_path for item in k.queue) + if exists: flash( "Error: Can't delete this song because it is in the current queue: " + song_path, "is-danger",