Simplify sync messages

This commit is contained in:
tomkat83 2016-03-01 13:36:12 +01:00
parent edba27d11d
commit 9465939397

View file

@ -362,12 +362,6 @@ class LibrarySync(Thread):
# Add sources # Add sources
utils.sourcesXML() utils.sourcesXML()
if manualrun:
message = "Manual sync"
elif repair:
message = "Repair sync"
else:
message = "Initial sync"
# Set new timestamp NOW because sync might take a while # Set new timestamp NOW because sync might take a while
self.saveLastSync() self.saveLastSync()
starttotal = datetime.now() starttotal = datetime.now()
@ -400,8 +394,8 @@ class LibrarySync(Thread):
xbmc.executebuiltin('UpdateLibrary(music)') xbmc.executebuiltin('UpdateLibrary(music)')
elapsedtotal = datetime.now() - starttotal elapsedtotal = datetime.now() - starttotal
utils.window('emby_initialScan', clear=True) utils.window('emby_initialScan', clear=True)
self.showKodiNote("%s completed in: %s" self.showKodiNote("Sync completed in: %s"
% (message, str(elapsedtotal).split('.')[0])) % (str(elapsedtotal).split('.')[0]))
return True return True