added delay to SickBeard fixes #174

This commit is contained in:
clinton-hall 2013-09-05 07:11:43 +09:30
commit 1436de30ca
3 changed files with 22 additions and 1 deletions

View file

@ -103,9 +103,14 @@ def processEpisode(dirName, nzbName=None, failed=False):
transcode = 0 transcode = 0
try: try:
delete_failed = int(config.get("CouchPotato", "delete_failed")) delete_failed = int(config.get("SickBeard", "delete_failed"))
except (ConfigParser.NoOptionError, ValueError): except (ConfigParser.NoOptionError, ValueError):
delete_failed = 0 delete_failed = 0
try:
delay = float(config.get("SickBeard", "delay"))
except (ConfigParser.NoOptionError, ValueError):
delay = 0
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',') mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
minSampleSize = int(config.get("Extensions", "minSampleSize")) minSampleSize = int(config.get("Extensions", "minSampleSize"))
@ -185,6 +190,10 @@ def processEpisode(dirName, nzbName=None, failed=False):
url = protocol + host + ":" + port + web_root + "/home/postprocess/processEpisode?" + urllib.urlencode(params) url = protocol + host + ":" + port + web_root + "/home/postprocess/processEpisode?" + urllib.urlencode(params)
Logger.info("Waiting for %s seconds to allow CPS to process newly extracted files", str(delay))
time.sleep(delay)
Logger.debug("Opening URL: %s", url) Logger.debug("Opening URL: %s", url)
try: try:

View file

@ -30,6 +30,7 @@ password =
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ###### ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
web_root = web_root =
ssl = 0 ssl = 0
delay = 0
watch_dir = watch_dir =
failed_fork = 0 failed_fork = 0
delete_failed = 0 delete_failed = 0

View file

@ -1,5 +1,16 @@
Change_LOG / History Change_LOG / History
V8.4 XX/XX/2013
Impacts Torrents
Don't include 720p or 1080p as parts for extracting.
Extracts all sub-folders.
Added option to Move files.
Impacts All
Added option for SickBeard delay (for forks that use 1 minute check.
V8.3 11/07/2013 V8.3 11/07/2013
Impacts All Impacts All