mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
fix nzbget migrate. fixes #408
This commit is contained in:
parent
f640fc9618
commit
8672315974
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue