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')