mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
added delay to SickBeard fixes #174
This commit is contained in:
parent
1ee2b83709
commit
1436de30ca
3 changed files with 22 additions and 1 deletions
|
@ -103,9 +103,14 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
|||
transcode = 0
|
||||
|
||||
try:
|
||||
delete_failed = int(config.get("CouchPotato", "delete_failed"))
|
||||
delete_failed = int(config.get("SickBeard", "delete_failed"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
delete_failed = 0
|
||||
try:
|
||||
delay = float(config.get("SickBeard", "delay"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
delay = 0
|
||||
|
||||
|
||||
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
|
||||
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)
|
||||
|
||||
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)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue