Initialize Kodi DBs only once

This commit is contained in:
tomkat83 2016-05-29 16:52:38 +02:00
parent 473f6fe58a
commit e80f38c690

View file

@ -477,9 +477,6 @@ class LibrarySync(Thread):
# Add sources
utils.sourcesXML()
# Ensure that DBs exist if called for very first time
self.initializeDBs()
# Set views. Abort if unsuccessful
if not self.maintainViews():
xbmc.executebuiltin('InhibitIdleShutdown(false)')
@ -1581,6 +1578,9 @@ class LibrarySync(Thread):
log("---===### Starting LibrarySync ###===---", 0)
# Ensure that DBs exist if called for very first time
self.initializeDBs()
if self.enableMusic:
utils.advancedSettingsXML()