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)