From c8ddbc483694a0080f79295c20dfa80a91634182 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 23 Apr 2014 10:35:40 -0700 Subject: [PATCH] Extract issues fixed --- TorrentToMedia.py | 2 +- nzbToMedia.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)