Simplify sync messages
This commit is contained in:
parent
edba27d11d
commit
9465939397
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue