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() section = nzbtomedia.CFG.findsection(inputCategory).isenabled()
if section is None: if section is None:
logger.error( 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)) inputCategory))
return -1 return -1

View file

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