mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
fix another int(Section) error.
This commit is contained in:
parent
879584c107
commit
14be873c7c
1 changed files with 3 additions and 2 deletions
|
@ -734,6 +734,7 @@ def rmDir(dirName):
|
||||||
|
|
||||||
|
|
||||||
def cleanDir(path, section, subsection):
|
def cleanDir(path, section, subsection):
|
||||||
|
cfg = dict(core.CFG[section][subsection])
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
logger.info('Directory {0} has been processed and removed ...'.format(path), 'CLEANDIR')
|
logger.info('Directory {0} has been processed and removed ...'.format(path), 'CLEANDIR')
|
||||||
return
|
return
|
||||||
|
@ -741,8 +742,8 @@ def cleanDir(path, section, subsection):
|
||||||
logger.info('Doing Forceful Clean of {0}'.format(path), 'CLEANDIR')
|
logger.info('Doing Forceful Clean of {0}'.format(path), 'CLEANDIR')
|
||||||
rmDir(path)
|
rmDir(path)
|
||||||
return
|
return
|
||||||
minSize = int(core.CFG[section][subsection].get('minSize', 0))
|
minSize = int(cfg.get('minSize', 0))
|
||||||
delete_ignored = int(core.CFG[section][subsection].get('delete_ignored', 0))
|
delete_ignored = int(cfg.get('delete_ignored', 0))
|
||||||
try:
|
try:
|
||||||
num_files = len(listMediaFiles(path, minSize=minSize, delete_ignored=delete_ignored))
|
num_files = len(listMediaFiles(path, minSize=minSize, delete_ignored=delete_ignored))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue