diff --git a/interface.py b/interface.py index 5727a65..1610f6b 100644 --- a/interface.py +++ b/interface.py @@ -90,7 +90,7 @@ def index(): var.playlist.extend(files) elif 'delete_music' in request.form: for item in var.playlist: - if str(item) == request.form['delete_music']: + if str(item[2]) == request.form['delete_music']: var.playlist.remove(item) break elif 'action' in request.form: diff --git a/templates/index.html b/templates/index.html index bddc691..27a574d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -84,8 +84,8 @@