mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Removed duplicate code from initalizer.
Fixed up code for delete_failed in both TV and Movie autoPP scripts.
This commit is contained in:
parent
a9d3ee2a60
commit
92d00ed62a
3 changed files with 9 additions and 12 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue