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):
|
if inputCategory != None and config.has_section(inputCategory):
|
||||||
section = inputCategory
|
section = inputCategory
|
||||||
|
|
||||||
host = config.get(section., "host")
|
host = config.get(section, "host")
|
||||||
port = config.get(section., "port")
|
port = config.get(section, "port")
|
||||||
apikey = config.get(section., "apikey")
|
apikey = config.get(section, "apikey")
|
||||||
delay = float(config.get(section., "delay"))
|
delay = float(config.get(section, "delay"))
|
||||||
method = config.get(section., "method")
|
method = config.get(section, "method")
|
||||||
delete_failed = int(config.get(section., "delete_failed"))
|
delete_failed = int(config.get(section, "delete_failed"))
|
||||||
wait_for = int(config.get(section., "wait_for"))
|
wait_for = int(config.get(section, "wait_for"))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ssl = int(config.get(section., "ssl"))
|
ssl = int(config.get(section, "ssl"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
ssl = 0
|
ssl = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
web_root = config.get(section., "web_root")
|
web_root = config.get(section, "web_root")
|
||||||
except ConfigParser.NoOptionError:
|
except ConfigParser.NoOptionError:
|
||||||
web_root = ""
|
web_root = ""
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ def process(dirName, nzbName=None, status=0, clientAgent = "manual", download_id
|
||||||
transcode = 0
|
transcode = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
remoteCPS = int(config.get(section., "remoteCPS"))
|
remoteCPS = int(config.get(section, "remoteCPS"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
remoteCPS = 0
|
remoteCPS = 0
|
||||||
|
|
||||||
|
|
|
@ -30,18 +30,18 @@ def process(dirName, nzbName=None, status=0, inputCategory=None):
|
||||||
if inputCategory != None and config.has_section(inputCategory):
|
if inputCategory != None and config.has_section(inputCategory):
|
||||||
section = inputCategory
|
section = inputCategory
|
||||||
|
|
||||||
host = config.get(section., "host")
|
host = config.get(section, "host")
|
||||||
port = config.get(section., "port")
|
port = config.get(section, "port")
|
||||||
apikey = config.get(section., "apikey")
|
apikey = config.get(section, "apikey")
|
||||||
delay = float(config.get(section., "delay"))
|
delay = float(config.get(section, "delay"))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ssl = int(config.get(section., "ssl"))
|
ssl = int(config.get(section, "ssl"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
ssl = 0
|
ssl = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
web_root = config.get(section., "web_root")
|
web_root = config.get(section, "web_root")
|
||||||
except ConfigParser.NoOptionError:
|
except ConfigParser.NoOptionError:
|
||||||
web_root = ""
|
web_root = ""
|
||||||
|
|
||||||
|
|
|
@ -59,27 +59,27 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
|
||||||
section = inputCategory
|
section = inputCategory
|
||||||
|
|
||||||
watch_dir = ""
|
watch_dir = ""
|
||||||
host = config.get(section., "host")
|
host = config.get(section, "host")
|
||||||
port = config.get(section., "port")
|
port = config.get(section, "port")
|
||||||
username = config.get(section., "username")
|
username = config.get(section, "username")
|
||||||
password = config.get(section., "password")
|
password = config.get(section, "password")
|
||||||
try:
|
try:
|
||||||
ssl = int(config.get(section., "ssl"))
|
ssl = int(config.get(section, "ssl"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
ssl = 0
|
ssl = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
web_root = config.get(section., "web_root")
|
web_root = config.get(section, "web_root")
|
||||||
except ConfigParser.NoOptionError:
|
except ConfigParser.NoOptionError:
|
||||||
web_root = ""
|
web_root = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
watch_dir = config.get(section., "watch_dir")
|
watch_dir = config.get(section, "watch_dir")
|
||||||
except ConfigParser.NoOptionError:
|
except ConfigParser.NoOptionError:
|
||||||
watch_dir = ""
|
watch_dir = ""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fork = config.get(section., "fork")
|
fork = config.get(section, "fork")
|
||||||
except ConfigParser.NoOptionError:
|
except ConfigParser.NoOptionError:
|
||||||
fork = "default"
|
fork = "default"
|
||||||
|
|
||||||
|
@ -89,11 +89,11 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
|
||||||
transcode = 0
|
transcode = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
delete_failed = int(config.get(section., "delete_failed"))
|
delete_failed = int(config.get(section, "delete_failed"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
delete_failed = 0
|
delete_failed = 0
|
||||||
try:
|
try:
|
||||||
delay = float(config.get(section., "delay"))
|
delay = float(config.get(section, "delay"))
|
||||||
except (ConfigParser.NoOptionError, ValueError):
|
except (ConfigParser.NoOptionError, ValueError):
|
||||||
delay = 0
|
delay = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue