Removed duplicate code from initalizer.

Fixed up code for delete_failed in both TV and Movie autoPP scripts.
This commit is contained in:
echel0n 2014-04-17 06:06:36 -07:00
commit 92d00ed62a
3 changed files with 9 additions and 12 deletions

View file

@ -202,7 +202,7 @@ class autoProcessMovie:
else:
logger.postprocess("Download of %s has failed.", nzbName)
if delete_failed and not os.path.dirname(dirName) == dirName:
if delete_failed and os.path.isdir(dirName) and not os.path.dirname(dirName) == dirName:
logger.postprocess("Deleting failed files and folder %s", dirName)
delete(dirName)