Increase path hack stability

- What happens if there are no movies or shows?
This commit is contained in:
tomkat83 2016-04-07 16:17:57 +02:00
parent 88b581f756
commit ceedba4f46

View file

@ -464,7 +464,12 @@ class LibrarySync(Thread):
# Path hack, so Kodis Information screen works
with kodidb.GetKodiDB('video') as kodi_db:
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):