From 06822e25146c8e41df0b64de508556c41cb9832e Mon Sep 17 00:00:00 2001 From: Ade Date: Sat, 16 Aug 2014 10:49:42 +1200 Subject: [PATCH] Ignore Artist fix Fixes https://github.com/rembo10/headphones/issues/1660 --- headphones/webserve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index f40206a6..db0f52c6 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -299,8 +299,8 @@ class WebInterface(object): if action == "ignore": myDB = db.DBConnection() for artist in args: - myDB.action('DELETE FROM newartists WHERE ArtistName=?', [artist]) - myDB.action('UPDATE have SET Matched="Ignored" WHERE ArtistName=?', [artist]) + myDB.action('DELETE FROM newartists WHERE ArtistName=?', [artist.decode(headphones.SYS_ENCODING, 'replace')]) + myDB.action('UPDATE have SET Matched="Ignored" WHERE ArtistName=?', [artist.decode(headphones.SYS_ENCODING, 'replace')]) logger.info("Artist %s removed from new artist list and set to ignored" % artist) raise cherrypy.HTTPRedirect("home") addArtists.exposed = True