mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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"):
|
if MBitem.get("DateCreated"):
|
||||||
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")
|
||||||
|
|
||||||
#safety check: does the musicbrainzartistId already exist?
|
#convenience/safety check: does the artist already exist?
|
||||||
cursor.execute("SELECT idArtist FROM artist WHERE strMusicBrainzArtistID = ?",(musicBrainsId,))
|
cursor.execute("SELECT idArtist FROM artist WHERE strArtist = ?",(name,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result != None:
|
if result != None:
|
||||||
artistid = result[0]
|
artistid = result[0]
|
||||||
|
|
Loading…
Reference in a new issue