From 93a52009dde428963defe32a110149c35534f6f0 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 8 May 2015 00:38:59 +0200 Subject: [PATCH] small change to music sync, do extra match on artist name to combine --- resources/lib/WriteKodiMusicDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/WriteKodiMusicDB.py b/resources/lib/WriteKodiMusicDB.py index dfb80f4f..659ac9f7 100644 --- a/resources/lib/WriteKodiMusicDB.py +++ b/resources/lib/WriteKodiMusicDB.py @@ -89,8 +89,8 @@ class WriteKodiMusicDB(): if MBitem.get("DateCreated"): dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ") - #safety check: does the musicbrainzartistId already exist? - cursor.execute("SELECT idArtist FROM artist WHERE strMusicBrainzArtistID = ?",(musicBrainsId,)) + #convenience/safety check: does the artist already exist? + cursor.execute("SELECT idArtist FROM artist WHERE strArtist = ?",(name,)) result = cursor.fetchone() if result != None: artistid = result[0]