Do not inhibit idle shutdown
This commit is contained in:
parent
74bed60c32
commit
e321559121
1 changed files with 0 additions and 4 deletions
|
@ -243,11 +243,9 @@ class LibrarySync(Thread):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _fullSync(self):
|
def _fullSync(self):
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(true)')
|
|
||||||
if self.new_items_only is True:
|
if self.new_items_only is True:
|
||||||
# Set views. Abort if unsuccessful
|
# Set views. Abort if unsuccessful
|
||||||
if not self.maintainViews():
|
if not self.maintainViews():
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
process = {
|
process = {
|
||||||
|
@ -262,7 +260,6 @@ class LibrarySync(Thread):
|
||||||
if (self.stopped() or
|
if (self.stopped() or
|
||||||
self.suspended() or
|
self.suspended() or
|
||||||
not process[itemtype]()):
|
not process[itemtype]()):
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Let kodi update the views in any case, since we're doing a full sync
|
# Let kodi update the views in any case, since we're doing a full sync
|
||||||
|
@ -271,7 +268,6 @@ class LibrarySync(Thread):
|
||||||
xbmc.executebuiltin('UpdateLibrary(music)')
|
xbmc.executebuiltin('UpdateLibrary(music)')
|
||||||
|
|
||||||
window('plex_initialScan', clear=True)
|
window('plex_initialScan', clear=True)
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
|
||||||
if window('plex_scancrashed') == 'true':
|
if window('plex_scancrashed') == 'true':
|
||||||
# Show warning if itemtypes.py crashed at some point
|
# Show warning if itemtypes.py crashed at some point
|
||||||
dialog('ok', heading='{plex}', line1=lang(39408))
|
dialog('ok', heading='{plex}', line1=lang(39408))
|
||||||
|
|
Loading…
Reference in a new issue