mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
SABnzbd-Suite: remove debugging
This commit is contained in:
parent
bec9570909
commit
9a05766262
@ -69,7 +69,7 @@ if sabNzbdLaunch:
|
|||||||
|
|
||||||
# start checking SABnzbd for activity and prevent sleeping if necessary
|
# start checking SABnzbd for activity and prevent sleeping if necessary
|
||||||
socket.setdefaulttimeout(timeout)
|
socket.setdefaulttimeout(timeout)
|
||||||
|
|
||||||
# perform some initial checks and log essential settings
|
# perform some initial checks and log essential settings
|
||||||
shouldKeepAwake = (__settings__.getSetting('SABNZBD_KEEP_AWAKE').lower() == 'true')
|
shouldKeepAwake = (__settings__.getSetting('SABNZBD_KEEP_AWAKE').lower() == 'true')
|
||||||
wakePeriodically = (__settings__.getSetting('SABNZBD_PERIODIC_WAKE').lower() == 'true')
|
wakePeriodically = (__settings__.getSetting('SABNZBD_PERIODIC_WAKE').lower() == 'true')
|
||||||
@ -118,10 +118,8 @@ while (not xbmc.abortRequested):
|
|||||||
# reset idle timer if queue is downloading/reparing/verifying/extracting
|
# reset idle timer if queue is downloading/reparing/verifying/extracting
|
||||||
if sabIsActive:
|
if sabIsActive:
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(true)')
|
xbmc.executebuiltin('InhibitIdleShutdown(true)')
|
||||||
xbmc.log('preventing sleep')
|
|
||||||
else:
|
else:
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||||
xbmc.log('not preventing sleep')
|
|
||||||
|
|
||||||
# calculate and set the time to wake up at (if any)
|
# calculate and set the time to wake up at (if any)
|
||||||
if wakePeriodically:
|
if wakePeriodically:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user