mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
added "wait_for" for SickBeard. Fixes #247
This commit is contained in:
parent
8555b91ad7
commit
7da2dd882e
3 changed files with 9 additions and 3 deletions
|
@ -13,9 +13,6 @@ from nzbToMediaUtil import *
|
||||||
from nzbToMediaSceneExceptions import process_all_exceptions
|
from nzbToMediaSceneExceptions import process_all_exceptions
|
||||||
|
|
||||||
Logger = logging.getLogger()
|
Logger = logging.getLogger()
|
||||||
TimeOut = 4 * int(TimeOut) # SickBeard needs to complete all moving and renaming before returning the log sequence via url.
|
|
||||||
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.
|
|
||||||
|
|
||||||
|
|
||||||
class AuthURLOpener(urllib.FancyURLopener):
|
class AuthURLOpener(urllib.FancyURLopener):
|
||||||
def __init__(self, user, pw):
|
def __init__(self, user, pw):
|
||||||
|
@ -99,6 +96,13 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
|
||||||
delay = float(config.get(section, "delay"))
|
delay = float(config.get(section, "delay"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
delay = 0
|
delay = 0
|
||||||
|
try:
|
||||||
|
wait_for = int(config.get(section, "wait_for"))
|
||||||
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
|
waitfor = 5
|
||||||
|
|
||||||
|
TimeOut = 60 * int(waitfor) # SickBeard needs to complete all moving and renaming before returning the log sequence via url.
|
||||||
|
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.
|
||||||
|
|
||||||
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
|
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
|
||||||
minSampleSize = int(config.get("Extensions", "minSampleSize"))
|
minSampleSize = int(config.get("Extensions", "minSampleSize"))
|
||||||
|
|
|
@ -31,6 +31,7 @@ password =
|
||||||
web_root =
|
web_root =
|
||||||
ssl = 0
|
ssl = 0
|
||||||
delay = 0
|
delay = 0
|
||||||
|
wait_for = 5
|
||||||
watch_dir =
|
watch_dir =
|
||||||
fork = default
|
fork = default
|
||||||
delete_failed = 0
|
delete_failed = 0
|
||||||
|
|
|
@ -4,6 +4,7 @@ V9.2 XX/02/2014
|
||||||
|
|
||||||
Impacts All
|
Impacts All
|
||||||
Change default "wait_for" to 5 mins. CouchPotato can take more than 2 minutes to return on renamer.scan request.
|
Change default "wait_for" to 5 mins. CouchPotato can take more than 2 minutes to return on renamer.scan request.
|
||||||
|
Added SickBeard "wait_for" to bw customizable to prevent unwanted timeouts.
|
||||||
|
|
||||||
V9.1 24/01/2014
|
V9.1 24/01/2014
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue