From 0546dcc2f65c34febd91ab5db9cdbf82c48a928d Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 15 Sep 2015 11:26:32 -0500 Subject: [PATCH] Move database log line So it only prints one time. --- resources/lib/LibrarySync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 0cfeee2e..78938d54 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -1060,7 +1060,7 @@ class LibrarySync(threading.Thread): utils.settings("dbCreatedWithVersion",WINDOW.getProperty('minDBVersion')) self.logMsg("DB version okay according to user", 0) # END TEMPORARY CODE - self.logMsg("DB Version: " + utils.settings("dbCreatedWithVersion"), 0) + if (utils.settings("SyncInstallRunDone") == "true" and self.checkDBVersion(utils.settings("dbCreatedWithVersion"), WINDOW.getProperty('minDBVersion'))==False and WINDOW.getProperty('minDBVersionCheck') != "true"): self.logMsg("DB version out of date according to check", 0) return_value = xbmcgui.Dialog().yesno("DB Version", "Detected the DB needs to be recreated for\nthis version of Emby for Kodi.\nProceed?") @@ -1074,6 +1074,7 @@ class LibrarySync(threading.Thread): # Library sync if not startupComplete: # Run full sync + self.logMsg("DB Version: " + utils.settings("dbCreatedWithVersion"), 0) self.logMsg("Doing_Db_Sync: syncDatabase (Started)", 1) startTime = datetime.now() libSync = self.FullLibrarySync()