Fix first artist [missing tag] (Reset your DB!)
- Thanks @angelblue05 - Fixes #308
This commit is contained in:
parent
f9037dcbd8
commit
83b18faac1
1 changed files with 8 additions and 1 deletions
|
@ -1280,7 +1280,14 @@ class Kodidb_Functions():
|
||||||
try:
|
try:
|
||||||
artistid = self.cursor.fetchone()[0]
|
artistid = self.cursor.fetchone()[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
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
|
||||||
|
if v.KODIVERSION >= 17:
|
||||||
|
self.cursor.execute(
|
||||||
|
"select coalesce(max(idArtist),1) from artist")
|
||||||
|
else:
|
||||||
|
self.cursor.execute(
|
||||||
|
"select coalesce(max(idArtist),0) from artist")
|
||||||
artistid = self.cursor.fetchone()[0] + 1
|
artistid = self.cursor.fetchone()[0] + 1
|
||||||
query = (
|
query = (
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue