mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
fix issues with import of cfg.
This commit is contained in:
parent
7ea8f3b848
commit
c145d3abde
1 changed files with 5 additions and 3 deletions
|
@ -581,16 +581,18 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
||||||
inputCategory))
|
inputCategory))
|
||||||
return [-1, ""]
|
return [-1, ""]
|
||||||
|
|
||||||
extract = int(section[usercat].get('extract', 0))
|
cfg = dict(core.CFG[sectionName][usercat])
|
||||||
|
|
||||||
|
extract = int(cfg.get("extract", 0))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if int(section[usercat]['remote_path']) and not core.REMOTEPATHS:
|
if int(cfg.get("remote_path")) and not core.REMOTEPATHS:
|
||||||
logger.error('Remote Path is enabled for {0}:{1} but no Network mount points are defined. Please check your autoProcessMedia.cfg, exiting!'.format(
|
logger.error('Remote Path is enabled for {0}:{1} but no Network mount points are defined. Please check your autoProcessMedia.cfg, exiting!'.format(
|
||||||
sectionName, inputCategory))
|
sectionName, inputCategory))
|
||||||
return [-1, ""]
|
return [-1, ""]
|
||||||
except:
|
except:
|
||||||
logger.error('Remote Path {0} is not valid for {1}:{2} Please set this to either 0 to disable or 1 to enable!'.format(
|
logger.error('Remote Path {0} is not valid for {1}:{2} Please set this to either 0 to disable or 1 to enable!'.format(
|
||||||
section[usercat]['remote_path'], sectionName, inputCategory))
|
core.get("remote_path"), sectionName, inputCategory))
|
||||||
|
|
||||||
inputName, inputDirectory = convert_to_ascii(inputName, inputDirectory)
|
inputName, inputDirectory = convert_to_ascii(inputName, inputDirectory)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue