mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Code corrected our conditional check for extraction.
This commit is contained in:
parent
f73167ba74
commit
9c817af60e
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
||||||
|
|
||||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||||
if section:
|
if section:
|
||||||
if nzbtomedia.CFG[section]['extract']:
|
if nzbtomedia.CFG[section][inputCategory]['extract']:
|
||||||
logger.debug('Checking for archives to extract in directory: %s' % (inputDirectory))
|
logger.debug('Checking for archives to extract in directory: %s' % (inputDirectory))
|
||||||
extractFiles(inputDirectory)
|
extractFiles(inputDirectory)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -290,7 +290,7 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id=
|
||||||
# auto-detect section
|
# auto-detect section
|
||||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||||
if section:
|
if section:
|
||||||
if nzbtomedia.CFG[section]['extract']:
|
if nzbtomedia.CFG[section][inputCategory]['extract']:
|
||||||
logger.debug('Checking for archives to extract in directory: %s' % (nzbDir))
|
logger.debug('Checking for archives to extract in directory: %s' % (nzbDir))
|
||||||
extractFiles(nzbDir)
|
extractFiles(nzbDir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue