mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -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)
|
||||
if section:
|
||||
if nzbtomedia.CFG[section]['extract']:
|
||||
if nzbtomedia.CFG[section][inputCategory]['extract']:
|
||||
logger.debug('Checking for archives to extract in directory: %s' % (inputDirectory))
|
||||
extractFiles(inputDirectory)
|
||||
else:
|
||||
|
|
|
@ -290,7 +290,7 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id=
|
|||
# auto-detect section
|
||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||
if section:
|
||||
if nzbtomedia.CFG[section]['extract']:
|
||||
if nzbtomedia.CFG[section][inputCategory]['extract']:
|
||||
logger.debug('Checking for archives to extract in directory: %s' % (nzbDir))
|
||||
extractFiles(nzbDir)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue