clean exit from userscript. Fixes #475

This commit is contained in:
clinton-hall 2014-07-17 22:07:25 +09:30
commit 50dc6c16f5
2 changed files with 7 additions and 7 deletions

View file

@ -592,9 +592,9 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
if clientAgent != 'manual':
# update download status in our DB
update_downloadInfoStatus(inputName, 1)
# cleanup our processing folders of any misc unwanted files and empty directories
cleanDir(inputDirectory, sectionName, inputCategory)
if not sectionName == 'UserScript':
# cleanup our processing folders of any misc unwanted files and empty directories
cleanDir(inputDirectory, sectionName, inputCategory)
return result