Inhibit idle shutdown only during initial sync
This commit is contained in:
parent
9f8c9a1636
commit
9e2ff58bc7
1 changed files with 2 additions and 0 deletions
|
@ -1575,7 +1575,9 @@ class LibrarySync(Thread):
|
||||||
delete_playlists()
|
delete_playlists()
|
||||||
delete_nodes()
|
delete_nodes()
|
||||||
log.info("Initial start-up full sync starting")
|
log.info("Initial start-up full sync starting")
|
||||||
|
xbmc.executebuiltin('InhibitIdleShutdown(true)')
|
||||||
librarySync = fullSync()
|
librarySync = fullSync()
|
||||||
|
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||||
window('plex_dbScan', clear=True)
|
window('plex_dbScan', clear=True)
|
||||||
state.DB_SCAN = False
|
state.DB_SCAN = False
|
||||||
if librarySync:
|
if librarySync:
|
||||||
|
|
Loading…
Reference in a new issue