From 2968638220e4c260fcd6869a189811d0c65df81b Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 28 Jul 2015 02:29:21 +0200 Subject: [PATCH] fixed strange bug in music sync --- resources/lib/WriteKodiMusicDB.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/WriteKodiMusicDB.py b/resources/lib/WriteKodiMusicDB.py index 36d917b2..7d03d33e 100644 --- a/resources/lib/WriteKodiMusicDB.py +++ b/resources/lib/WriteKodiMusicDB.py @@ -44,7 +44,9 @@ class WriteKodiMusicDB(): def addOrUpdateArtistToKodiLibrary(self, embyId, connection, cursor): MBitem = ReadEmbyDB().getFullItem(embyId) - + if not MBitem: + self.logMsg("ADD or UPDATE artist to Kodi library FAILED!, Id: %s" %(embyId), 1) + return # If the item already exist in the local Kodi DB we'll perform a full item update # If the item doesn't exist, we'll add it to the database