Fix bug in incremental

Due to changes in parameter, requires the full item instead of the
itemId.
This commit is contained in:
angelblue05 2015-08-09 21:18:26 -05:00
parent 97e6659c0c
commit 232e2d98ed

View file

@ -691,11 +691,11 @@ class LibrarySync(threading.Thread):
itemType = MBitem.get('Type', "")
if "MusicArtist" in itemType:
WriteKodiMusicDB().addOrUpdateArtistToKodiLibrary(MBitem["Id"],connection, cursor)
WriteKodiMusicDB().addOrUpdateArtistToKodiLibrary(MBitem,connection, cursor)
if "MusicAlbum" in itemType:
WriteKodiMusicDB().addOrUpdateAlbumToKodiLibrary(MBitem["Id"],connection, cursor)
WriteKodiMusicDB().addOrUpdateAlbumToKodiLibrary(MBitem,connection, cursor)
if "Audio" in itemType:
WriteKodiMusicDB().addOrUpdateSongToKodiLibrary(MBitem["Id"],connection, cursor)
WriteKodiMusicDB().addOrUpdateSongToKodiLibrary(MBitem,connection, cursor)
connection.commit()
cursor.close()