From 61a598f5bff6969b7b4c879f0d02862fa0872b47 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 15 Oct 2018 21:02:47 +1300 Subject: [PATCH] add NZBGet WebUI set of delete failed for HP. Fixes #1388 --- core/nzbToMediaConfig.py | 4 ++-- nzbToHeadPhones.py | 5 +++++ nzbToMedia.py | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/core/nzbToMediaConfig.py b/core/nzbToMediaConfig.py index 23c270fb..b65c3def 100644 --- a/core/nzbToMediaConfig.py +++ b/core/nzbToMediaConfig.py @@ -335,8 +335,8 @@ class ConfigObj(configobj.ConfigObj, Section): section = "HeadPhones" envCatKey = 'NZBPO_HPCATEGORY' - envKeys = ['ENABLED', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'WAIT_FOR', 'WATCH_DIR', 'REMOTE_PATH'] - cfgKeys = ['enabled', 'apikey', 'host', 'port', 'ssl', 'web_root', 'wait_for', 'watch_dir', 'remote_path'] + envKeys = ['ENABLED', 'APIKEY', 'HOST', 'PORT', 'SSL', 'WEB_ROOT', 'WAIT_FOR', 'WATCH_DIR', 'REMOTE_PATH', 'DELETE_FAILED'] + cfgKeys = ['enabled', 'apikey', 'host', 'port', 'ssl', 'web_root', 'wait_for', 'watch_dir', 'remote_path', 'delete_failed'] if envCatKey in os.environ: for index in range(len(envKeys)): key = 'NZBPO_HP{index}'.format(index=envKeys[index]) diff --git a/nzbToHeadPhones.py b/nzbToHeadPhones.py index 5e949a60..949bf0df 100755 --- a/nzbToHeadPhones.py +++ b/nzbToHeadPhones.py @@ -58,6 +58,11 @@ # set this if using a reverse proxy. #hpweb_root= +# HeadPhones Delete Failed Downloads (0, 1). +# +# set to 1 to delete failed, or 0 to leave files in place. +#hpdelete_failed=0 + # HeadPhones watch directory. # # set this to where your HeadPhones completed downloads are. diff --git a/nzbToMedia.py b/nzbToMedia.py index be8961ab..d747994b 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -278,6 +278,11 @@ # set this if using a reverse proxy. #hpweb_root= +# HeadPhones Delete Failed Downloads (0, 1). +# +# set to 1 to delete failed, or 0 to leave files in place. +#hpdelete_failed=0 + # HeadPhones and NZBGet are a different system (0, 1). # # Enable to replace local path with the path as per the mountPoints below.