mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 03:28:26 -07:00
Extract issues fixed
This commit is contained in:
parent
41e0d10e25
commit
c8ddbc4836
2 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
||||||
if platform.system() == 'Windows': # remove Read Only flag from files in Windows.
|
if platform.system() == 'Windows': # remove Read Only flag from files in Windows.
|
||||||
nzbtomedia.remove_read_only(outputDestination)
|
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))
|
logger.debug('Checking for archives to extract in directory: %s' % (outputDestination))
|
||||||
nzbtomedia.extractFiles(outputDestination)
|
nzbtomedia.extractFiles(outputDestination)
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,7 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
||||||
# auto-detect section
|
# auto-detect section
|
||||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||||
if section:
|
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))
|
logger.debug('Checking for archives to extract in directory: %s' % (inputDirectory))
|
||||||
extractFiles(inputDirectory)
|
extractFiles(inputDirectory)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue