From ceedba4f46a4387ade2d2fbef1849627fb20a728 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 7 Apr 2016 16:17:57 +0200 Subject: [PATCH] Increase path hack stability - What happens if there are no movies or shows? --- resources/lib/librarysync.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 49045bbe..a0b41b44 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -464,7 +464,12 @@ class LibrarySync(Thread): # Path hack, so Kodis Information screen works with kodidb.GetKodiDB('video') as kodi_db: - kodi_db.pathHack() + try: + kodi_db.pathHack() + except Exception as e: + # Empty movies, tv shows? + self.logMsg('Path hack failed with error message: %s' + % str(e), -1) return True def processView(self, folderItem, kodi_db, emby_db, totalnodes):