From edba27d11d9fe22a6061643f25285b187ee9050a Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 1 Mar 2016 13:31:35 +0100 Subject: [PATCH] Allow for Kodi music library update --- resources/lib/librarysync.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 835968be..af996898 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -319,10 +319,10 @@ class LibrarySync(Thread): # Let Kodi update the library now (artwork and userdata) if self.updateKodiVideoLib: - self.logMsg("Doing Kodi Video Lib update", 2) + self.logMsg("Doing Kodi Video Lib update", 1) xbmc.executebuiltin('UpdateLibrary(video)') if self.updateKodiMusicLib: - self.logMsg("Doing Kodi Music Lib update", 2) + self.logMsg("Doing Kodi Music Lib update", 1) xbmc.executebuiltin('UpdateLibrary(music)') # Reset and return @@ -808,8 +808,10 @@ class LibrarySync(Thread): except (TypeError, AttributeError, IndexError): return - if itemType in ['Movies', 'TVShows']: + if itemType in ('Movies', 'TVShows'): self.updateKodiVideoLib = True + elif itemType in ('Music'): + self.updateKodiMusicLib = True itemMth = getattr(itemtypes, itemType) with itemMth() as method: