Rework downloadutils (#63)

This commit is contained in:
angelblue05 2016-09-26 21:50:58 -05:00 committed by GitHub
commit a00d55ac0e
10 changed files with 333 additions and 192 deletions

View file

@ -1032,7 +1032,6 @@ class LibrarySync(threading.Thread):
line1=lang(33024))
break
# Run start up sync
log.warn("Database version: %s", window('emby_version'))
log.info("SyncDatabase (started)")
@ -1041,6 +1040,9 @@ class LibrarySync(threading.Thread):
elapsedTime = datetime.now() - startTime
log.info("SyncDatabase (finished in: %s) %s"
% (str(elapsedTime).split('.')[0], librarySync))
# Add other servers at this point
self.user.load_connect_servers()
# Only try the initial sync once per kodi session regardless
# This will prevent an infinite loop in case something goes wrong.
startupComplete = True