Initialize Kodi DBs only once
This commit is contained in:
parent
473f6fe58a
commit
e80f38c690
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue