From 9c817af60e9444c55a10c842dc52a0ddc5d3329f Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 20 Apr 2014 14:29:17 -0700 Subject: [PATCH] Code corrected our conditional check for extraction. --- TorrentToMedia.py | 2 +- nzbToMedia.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 8d629f79..f1d4b33e 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -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: diff --git a/nzbToMedia.py b/nzbToMedia.py index 6639ac4f..1115e1eb 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -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)