mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
small change to music sync, do extra match on artist name to combine
This commit is contained in:
parent
507dd340cd
commit
93a52009dd
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue