mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix bug in incremental
Due to changes in parameter, requires the full item instead of the itemId.
This commit is contained in:
parent
97e6659c0c
commit
232e2d98ed
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue