mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
Sabnzbd-Suite: fix api-key error message if SABnzbd disabled.
This commit is contained in:
parent
c37c163f96
commit
bd0d310e13
@ -48,7 +48,10 @@ wake_times = ['01:00','03:00','05:00','07:00','09:00','11:00','13:00','15:00
|
|||||||
# Launch Suite
|
# Launch Suite
|
||||||
subprocess.call(['python',__start__])
|
subprocess.call(['python',__start__])
|
||||||
|
|
||||||
|
# check for launching sabnzbd
|
||||||
|
sabNzbdLaunch = (__settings__.getSetting('SABNZBD_LAUNCH').lower() == 'true')
|
||||||
|
|
||||||
|
if sabNzbdLaunch:
|
||||||
# SABnzbd addresses and api key
|
# SABnzbd addresses and api key
|
||||||
sabNzbdAddress = '127.0.0.1:8081'
|
sabNzbdAddress = '127.0.0.1:8081'
|
||||||
sabNzbdConfigFile = '/storage/.xbmc/userdata/addon_data/service.downloadmanager.SABnzbd-Suite/sabnzbd.ini'
|
sabNzbdConfigFile = '/storage/.xbmc/userdata/addon_data/service.downloadmanager.SABnzbd-Suite/sabnzbd.ini'
|
||||||
@ -61,9 +64,6 @@ sabNzbdQueue = 'http://' + sabNzbdAddress + '/sabnzbd/api?mode=queue&output
|
|||||||
# 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)
|
||||||
|
|
||||||
# check for launching sabnzbd
|
|
||||||
sabNzbdLaunch = (__settings__.getSetting('SABNZBD_LAUNCH').lower() == 'true')
|
|
||||||
|
|
||||||
# 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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user