fix nzbget migrate. fixes #408

This commit is contained in:
clinton-hall 2014-05-29 14:34:41 +09:30
commit 8672315974
2 changed files with 2 additions and 2 deletions

View file

@ -339,7 +339,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
section = nzbtomedia.CFG.findsection(inputCategory).isenabled()
if section is None:
logger.error(
'Category:[%s] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try again.' % (
'Category:[%s] is not defined or is not enabled. Please rename it or ensure it is enabled for the appropriate section in your autoProcessMedia.cfg and try again.' % (
inputCategory))
return -1

View file

@ -233,7 +233,7 @@ class ConfigObj(configobj.ConfigObj, Section):
section = "Nzb"
key = 'NZBOP_DESTDIR'
if os.environ.has_key(key):
option = default_downloadDirectory
option = 'default_downloadDirectory'
value = os.environ[key]
CFG_NEW[section][option] = value