From 5231321e2731d61ded0247a1ed03051fc18dc61c Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 28 Jan 2014 09:33:30 +1030 Subject: [PATCH] added extra params to nzbget config. fixes #247 --- autoProcess/migratecfg.py | 8 ++++---- nzbToCouchPotato.py | 5 +++++ nzbToMedia.py | 15 +++++++++++++++ nzbToSickBeard.py | 10 ++++++++++ 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/autoProcess/migratecfg.py b/autoProcess/migratecfg.py index 06196642..e4389702 100644 --- a/autoProcess/migratecfg.py +++ b/autoProcess/migratecfg.py @@ -294,8 +294,8 @@ def addnzbget(): confignew.read(configFilenamenew) section = "CouchPotato" - envKeys = ['CATEGORY', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'DELAY', 'METHOD', 'DELETE_FAILED', 'REMOTECPS'] - cfgKeys = ['cpsCategory', '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', 'wait_for'] for index in range(len(envKeys)): key = 'NZBPO_CPS' + envKeys[index] if os.environ.has_key(key): @@ -305,8 +305,8 @@ def addnzbget(): section = "SickBeard" - envKeys = ['CATEGORY', 'HOST', 'PORT', 'USERNAME', 'PASSWORD', 'SSL', 'WEB_ROOT', 'WATCH_DIR', 'FORK'] - cfgKeys = ['sbCategory', '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', 'delete_failed', 'delay', 'wait_for'] for index in range(len(envKeys)): key = 'NZBPO_SB' + envKeys[index] if os.environ.has_key(key): diff --git a/nzbToCouchPotato.py b/nzbToCouchPotato.py index 59ba6938..59d39128 100755 --- a/nzbToCouchPotato.py +++ b/nzbToCouchPotato.py @@ -53,6 +53,11 @@ # set to 1 to delete failed, or 0 to leave files in place. #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). # # set to 1 if CouchPotato and NZBGet are on a different system, or 0 if on the same system. diff --git a/nzbToMedia.py b/nzbToMedia.py index 8fadc7c2..e501d253 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -53,6 +53,11 @@ # set to 1 to delete failed, or 0 to leave files in place. #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). # # 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. #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. # # set this if SickBeard and nzbGet are on different systems. diff --git a/nzbToSickBeard.py b/nzbToSickBeard.py index d7a5260c..49c84692 100755 --- a/nzbToSickBeard.py +++ b/nzbToSickBeard.py @@ -41,6 +41,16 @@ # set this if using a reverse proxy. #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. # # set this if SickBeard and nzbGet are on different systems.