delete check fix #133 and category check fix #134

This commit is contained in:
clinton-hall 2013-05-25 21:05:38 +09:30
commit 96c4a9fa40
2 changed files with 4 additions and 1 deletions

View file

@ -165,7 +165,7 @@ def processEpisode(dirName, nzbName=None, failed=False):
Logger.info("The download succeeded. Sending process request to SickBeard")
else:
Logger.info("The download failed. Nothing to process")
if delete_failed and not dirName in ['sys.argv[0]','/','']:
if delete_failed and os.path.isdir(dirName) and not dirName in ['sys.argv[0]','/','']:
delete(dirName)
return 0 # Success (as far as this script is concerned)