mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
fix multiple typos #230
This commit is contained in:
parent
18d10d28a6
commit
ee6d6e62de
3 changed files with 26 additions and 26 deletions
|
@ -207,21 +207,21 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
|||
if inputCategory != None and config.has_section(inputCategory):
|
||||
section = inputCategory
|
||||
|
||||
host = config.get(section., "host")
|
||||
port = config.get(section., "port")
|
||||
apikey = config.get(section., "apikey")
|
||||
delay = float(config.get(section., "delay"))
|
||||
method = config.get(section., "method")
|
||||
delete_failed = int(config.get(section., "delete_failed"))
|
||||
wait_for = int(config.get(section., "wait_for"))
|
||||
host = config.get(section, "host")
|
||||
port = config.get(section, "port")
|
||||
apikey = config.get(section, "apikey")
|
||||
delay = float(config.get(section, "delay"))
|
||||
method = config.get(section, "method")
|
||||
delete_failed = int(config.get(section, "delete_failed"))
|
||||
wait_for = int(config.get(section, "wait_for"))
|
||||
|
||||
try:
|
||||
ssl = int(config.get(section., "ssl"))
|
||||
ssl = int(config.get(section, "ssl"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
ssl = 0
|
||||
|
||||
try:
|
||||
web_root = config.get(section., "web_root")
|
||||
web_root = config.get(section, "web_root")
|
||||
except ConfigParser.NoOptionError:
|
||||
web_root = ""
|
||||
|
||||
|
@ -231,7 +231,7 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
|||
transcode = 0
|
||||
|
||||
try:
|
||||
remoteCPS = int(config.get(section., "remoteCPS"))
|
||||
remoteCPS = int(config.get(section, "remoteCPS"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
remoteCPS = 0
|
||||
|
||||
|
|
|
@ -30,18 +30,18 @@ def process(dirName, nzbName=None, status=0, inputCategory=None):
|
|||
if inputCategory != None and config.has_section(inputCategory):
|
||||
section = inputCategory
|
||||
|
||||
host = config.get(section., "host")
|
||||
port = config.get(section., "port")
|
||||
apikey = config.get(section., "apikey")
|
||||
delay = float(config.get(section., "delay"))
|
||||
host = config.get(section, "host")
|
||||
port = config.get(section, "port")
|
||||
apikey = config.get(section, "apikey")
|
||||
delay = float(config.get(section, "delay"))
|
||||
|
||||
try:
|
||||
ssl = int(config.get(section., "ssl"))
|
||||
ssl = int(config.get(section, "ssl"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
ssl = 0
|
||||
|
||||
try:
|
||||
web_root = config.get(section., "web_root")
|
||||
web_root = config.get(section, "web_root")
|
||||
except ConfigParser.NoOptionError:
|
||||
web_root = ""
|
||||
|
||||
|
|
|
@ -59,27 +59,27 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
|
|||
section = inputCategory
|
||||
|
||||
watch_dir = ""
|
||||
host = config.get(section., "host")
|
||||
port = config.get(section., "port")
|
||||
username = config.get(section., "username")
|
||||
password = config.get(section., "password")
|
||||
host = config.get(section, "host")
|
||||
port = config.get(section, "port")
|
||||
username = config.get(section, "username")
|
||||
password = config.get(section, "password")
|
||||
try:
|
||||
ssl = int(config.get(section., "ssl"))
|
||||
ssl = int(config.get(section, "ssl"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
ssl = 0
|
||||
|
||||
try:
|
||||
web_root = config.get(section., "web_root")
|
||||
web_root = config.get(section, "web_root")
|
||||
except ConfigParser.NoOptionError:
|
||||
web_root = ""
|
||||
|
||||
try:
|
||||
watch_dir = config.get(section., "watch_dir")
|
||||
watch_dir = config.get(section, "watch_dir")
|
||||
except ConfigParser.NoOptionError:
|
||||
watch_dir = ""
|
||||
|
||||
try:
|
||||
fork = config.get(section., "fork")
|
||||
fork = config.get(section, "fork")
|
||||
except ConfigParser.NoOptionError:
|
||||
fork = "default"
|
||||
|
||||
|
@ -89,11 +89,11 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
|
|||
transcode = 0
|
||||
|
||||
try:
|
||||
delete_failed = int(config.get(section., "delete_failed"))
|
||||
delete_failed = int(config.get(section, "delete_failed"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
delete_failed = 0
|
||||
try:
|
||||
delay = float(config.get(section., "delay"))
|
||||
delay = float(config.get(section, "delay"))
|
||||
except (ConfigParser.NoOptionError, ValueError):
|
||||
delay = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue