Fixed issue for wrong destination set for cleaning in TorrentToMedia.

Checks for directory exists before attempting to clean it incase processor has already cleaned and removed it.
This commit is contained in:
echel0n 2014-04-25 03:02:38 -07:00
commit eec6ed3b11
2 changed files with 6 additions and 3 deletions

View file

@ -202,7 +202,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
nzbtomedia.remove_torrent(clientAgent, inputHash, inputID, inputName)
# cleanup our processing folders of any misc unwanted files and empty directories
nzbtomedia.cleanDir(inputDirectory, sectionName, inputCategory)
nzbtomedia.cleanDir(outputDestination, sectionName, inputCategory)
return result