From 0400eec0c9d1349d4bb481add947138ff1d549c9 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 2 Dec 2018 16:16:21 +0100 Subject: [PATCH] Fix iOrder of song_genre table being None instead of 0 --- resources/lib/kodi_db/music.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/kodi_db/music.py b/resources/lib/kodi_db/music.py index 4c843f82..cbe3af4b 100644 --- a/resources/lib/kodi_db/music.py +++ b/resources/lib/kodi_db/music.py @@ -289,9 +289,10 @@ class KodiMusicDB(common.KodiDBBase): self.cursor.execute(''' INSERT OR REPLACE INTO song_genre( idGenre, - idSong) - VALUES (?, ?) - ''', (genreid, kodiid)) + idSong, + iOrder) + VALUES (?, ?, ?) + ''', (genreid, kodiid, 0)) def add_song_id(self): self.cursor.execute('SELECT COALESCE(MAX(idSong),0) FROM song')