Try to prevent sleep from happening
During the initial sync or any major sync, manual or repair.
This commit is contained in:
parent
081b76e7b0
commit
6100faadda
2 changed files with 4 additions and 2 deletions
|
@ -1304,8 +1304,8 @@ class TVShows(Items):
|
||||||
airsBeforeSeason = item['AirsAfterSeasonNumber']
|
airsBeforeSeason = item['AirsAfterSeasonNumber']
|
||||||
airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering
|
airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering
|
||||||
else:
|
else:
|
||||||
airsBeforeSeason = item.get('AirsBeforeSeasonNumber', "-1")
|
airsBeforeSeason = item.get('AirsBeforeSeasonNumber')
|
||||||
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', "-1")
|
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber')
|
||||||
|
|
||||||
# Append multi episodes to title
|
# Append multi episodes to title
|
||||||
if item.get('IndexNumberEnd'):
|
if item.get('IndexNumberEnd'):
|
||||||
|
|
|
@ -228,6 +228,7 @@ class LibrarySync(threading.Thread):
|
||||||
emby = self.emby
|
emby = self.emby
|
||||||
music_enabled = utils.settings('enableMusic') == "true"
|
music_enabled = utils.settings('enableMusic') == "true"
|
||||||
|
|
||||||
|
xbmc.executebuiltin('InhibitIdleShutdown(true)')
|
||||||
window('emby_dbScan', value="true")
|
window('emby_dbScan', value="true")
|
||||||
# Add sources
|
# Add sources
|
||||||
utils.sourcesXML()
|
utils.sourcesXML()
|
||||||
|
@ -332,6 +333,7 @@ class LibrarySync(threading.Thread):
|
||||||
xbmc.executebuiltin('UpdateLibrary(video)')
|
xbmc.executebuiltin('UpdateLibrary(video)')
|
||||||
elapsedtotal = datetime.now() - starttotal
|
elapsedtotal = datetime.now() - starttotal
|
||||||
|
|
||||||
|
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||||
window('emby_dbScan', clear=True)
|
window('emby_dbScan', clear=True)
|
||||||
window('emby_initialScan', clear=True)
|
window('emby_initialScan', clear=True)
|
||||||
xbmcgui.Dialog().notification(
|
xbmcgui.Dialog().notification(
|
||||||
|
|
Loading…
Reference in a new issue