Fix first artist [missing tag] in krypton

This commit is contained in:
angelblue05 2017-08-04 17:56:21 -05:00
parent 0f6e2f81b9
commit 3c9a684942

View file

@ -22,7 +22,9 @@ class KodiMusic(KodiItems):
KodiItems.__init__(self)
def create_entry(self):
self.cursor.execute("select coalesce(max(idArtist),0) from artist")
# Krypton has a dummy first entry
# idArtist: 1 strArtist: [Missing Tag] strMusicBrainzArtistID: Artist Tag Missing
self.cursor.execute("select coalesce(max(idArtist),1) from artist")
kodi_id = self.cursor.fetchone()[0] + 1
return kodi_id