added extra params to nzbget config. fixes #247

This commit is contained in:
clinton-hall 2014-01-28 09:33:30 +10:30
parent 0093ad27c6
commit 5231321e27
4 changed files with 34 additions and 4 deletions

View file

@ -294,8 +294,8 @@ def addnzbget():
confignew.read(configFilenamenew) confignew.read(configFilenamenew)
section = "CouchPotato" section = "CouchPotato"
envKeys = ['CATEGORY', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'DELAY', 'METHOD', 'DELETE_FAILED', 'REMOTECPS'] envKeys = ['CATEGORY', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'DELAY', 'METHOD', 'DELETE_FAILED', 'REMOTECPS', 'WAIT_FOR']
cfgKeys = ['cpsCategory', 'apikey', 'host', 'port', 'ssl', 'web_root', 'delay', 'method', 'delete_failed', 'remoteCPS'] cfgKeys = ['cpsCategory', 'apikey', 'host', 'port', 'ssl', 'web_root', 'delay', 'method', 'delete_failed', 'remoteCPS', 'wait_for']
for index in range(len(envKeys)): for index in range(len(envKeys)):
key = 'NZBPO_CPS' + envKeys[index] key = 'NZBPO_CPS' + envKeys[index]
if os.environ.has_key(key): if os.environ.has_key(key):
@ -305,8 +305,8 @@ def addnzbget():
section = "SickBeard" section = "SickBeard"
envKeys = ['CATEGORY', 'HOST', 'PORT', 'USERNAME', 'PASSWORD', 'SSL', 'WEB_ROOT', 'WATCH_DIR', 'FORK'] envKeys = ['CATEGORY', 'HOST', 'PORT', 'USERNAME', 'PASSWORD', 'SSL', 'WEB_ROOT', 'WATCH_DIR', 'FORK', 'DELETE_FAILED', 'DELAY', 'WAIT_FOR']
cfgKeys = ['sbCategory', 'host', 'port', 'username', 'password', 'ssl', 'web_root', 'watch_dir', 'fork'] cfgKeys = ['sbCategory', 'host', 'port', 'username', 'password', 'ssl', 'web_root', 'watch_dir', 'fork', 'delete_failed', 'delay', 'wait_for']
for index in range(len(envKeys)): for index in range(len(envKeys)):
key = 'NZBPO_SB' + envKeys[index] key = 'NZBPO_SB' + envKeys[index]
if os.environ.has_key(key): if os.environ.has_key(key):

View file

@ -53,6 +53,11 @@
# set to 1 to delete failed, or 0 to leave files in place. # set to 1 to delete failed, or 0 to leave files in place.
#cpsdelete_failed=0 #cpsdelete_failed=0
# CouchPotato wait_for
#
# Set the number of minutes to wait before timing out. If transfering files across drives or network, increase this to longer than the time it takes to copy a movie.
#cpswait_for=5
# CouchPotatoServer and NZBGet are a different system (0, 1). # CouchPotatoServer and NZBGet are a different system (0, 1).
# #
# set to 1 if CouchPotato and NZBGet are on a different system, or 0 if on the same system. # set to 1 if CouchPotato and NZBGet are on a different system, or 0 if on the same system.

View file

@ -53,6 +53,11 @@
# set to 1 to delete failed, or 0 to leave files in place. # set to 1 to delete failed, or 0 to leave files in place.
#cpsdelete_failed=0 #cpsdelete_failed=0
# CouchPotato wait_for
#
# Set the number of minutes to wait before timing out. If transfering files across drives or network, increase this to longer than the time it takes to copy a movie.
#cpswait_for=5
# CouchPotatoServer and NZBGet are a different system (0, 1). # CouchPotatoServer and NZBGet are a different system (0, 1).
# #
# set to 1 if CouchPotato and NZBGet are on a different system, or 0 if on the same system. # set to 1 if CouchPotato and NZBGet are on a different system, or 0 if on the same system.
@ -87,6 +92,16 @@
# set this if using a reverse proxy. # set this if using a reverse proxy.
#sbweb_root= #sbweb_root=
# SickBeard delay
#
# Set the number of seconds to wait before calling post-process in SickBeard.
#sbdelay=0
# SickBeard wait_for
#
# Set the number of minutes to wait before timing out. If transferring files across drives or network, increase this to longer than the time it takes to copy an episode.
#sbwait_for=5
# SickBeard watch directory. # SickBeard watch directory.
# #
# set this if SickBeard and nzbGet are on different systems. # set this if SickBeard and nzbGet are on different systems.

View file

@ -41,6 +41,16 @@
# set this if using a reverse proxy. # set this if using a reverse proxy.
#sbweb_root= #sbweb_root=
# SickBeard delay
#
# Set the number of seconds to wait before calling post-process in SickBeard.
#sbdelay=0
# SickBeard wait_for
#
# Set the number of minutes to wait before timing out. If transfering files across drives or network, increase this to longer than the time it takes to copy an episode.
#sbwait_for=5
# SickBeard watch directory. # SickBeard watch directory.
# #
# set this if SickBeard and nzbGet are on different systems. # set this if SickBeard and nzbGet are on different systems.