diff --git a/TorrentToMedia.py b/TorrentToMedia.py index f07cc570..bd59afb7 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -128,7 +128,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID, if platform.system() == 'Windows': # remove Read Only flag from files in Windows. nzbtomedia.remove_read_only(outputDestination) - if nzbtomedia.CFG[section][inputCategory]['extract']: + if nzbtomedia.CFG[section][inputCategory]['extract'] == 1: logger.debug('Checking for archives to extract in directory: %s' % (outputDestination)) nzbtomedia.extractFiles(outputDestination) diff --git a/nzbToMedia.py b/nzbToMedia.py index 22331f8a..389e7a60 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -305,7 +305,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down # auto-detect section section = nzbtomedia.CFG.findsection(inputCategory) if section: - if nzbtomedia.CFG[section][inputCategory]['extract']: + if nzbtomedia.CFG[section][inputCategory]['extract'] == 1: logger.debug('Checking for archives to extract in directory: %s' % (inputDirectory)) extractFiles(inputDirectory)