mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Refactor sabnzbd configuration
This commit is contained in:
parent
9c105061d6
commit
218e082ec7
1 changed files with 10 additions and 4 deletions
|
@ -397,19 +397,25 @@ def configure_wake_on_lan():
|
||||||
wake_up()
|
wake_up()
|
||||||
|
|
||||||
|
|
||||||
def configure_nzbs():
|
def configure_sabnzbd():
|
||||||
global NZB_CLIENT_AGENT
|
|
||||||
global SABNZBD_HOST
|
global SABNZBD_HOST
|
||||||
global SABNZBD_PORT
|
global SABNZBD_PORT
|
||||||
global SABNZBD_APIKEY
|
global SABNZBD_APIKEY
|
||||||
global NZB_DEFAULT_DIRECTORY
|
|
||||||
|
|
||||||
NZB_CLIENT_AGENT = CFG['Nzb']['clientAgent'] # sabnzbd
|
|
||||||
SABNZBD_HOST = CFG['Nzb']['sabnzbd_host']
|
SABNZBD_HOST = CFG['Nzb']['sabnzbd_host']
|
||||||
SABNZBD_PORT = int(CFG['Nzb']['sabnzbd_port'] or 8080) # defaults to accommodate NzbGet
|
SABNZBD_PORT = int(CFG['Nzb']['sabnzbd_port'] or 8080) # defaults to accommodate NzbGet
|
||||||
SABNZBD_APIKEY = CFG['Nzb']['sabnzbd_apikey']
|
SABNZBD_APIKEY = CFG['Nzb']['sabnzbd_apikey']
|
||||||
|
|
||||||
|
|
||||||
|
def configure_nzbs():
|
||||||
|
global NZB_CLIENT_AGENT
|
||||||
|
global NZB_DEFAULT_DIRECTORY
|
||||||
|
|
||||||
|
NZB_CLIENT_AGENT = CFG['Nzb']['clientAgent'] # sabnzbd
|
||||||
NZB_DEFAULT_DIRECTORY = CFG['Nzb']['default_downloadDirectory']
|
NZB_DEFAULT_DIRECTORY = CFG['Nzb']['default_downloadDirectory']
|
||||||
|
|
||||||
|
configure_sabnzbd()
|
||||||
|
|
||||||
|
|
||||||
def configure_groups():
|
def configure_groups():
|
||||||
global GROUPS
|
global GROUPS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue