Fix iOrder of song_genre table being None instead of 0

This commit is contained in:
croneter 2018-12-02 16:16:21 +01:00
parent a55c0c6ecb
commit 0400eec0c9

View file

@ -289,9 +289,10 @@ class KodiMusicDB(common.KodiDBBase):
self.cursor.execute(''' self.cursor.execute('''
INSERT OR REPLACE INTO song_genre( INSERT OR REPLACE INTO song_genre(
idGenre, idGenre,
idSong) idSong,
VALUES (?, ?) iOrder)
''', (genreid, kodiid)) VALUES (?, ?, ?)
''', (genreid, kodiid, 0))
def add_song_id(self): def add_song_id(self):
self.cursor.execute('SELECT COALESCE(MAX(idSong),0) FROM song') self.cursor.execute('SELECT COALESCE(MAX(idSong),0) FROM song')