From 41ac893c816be4703a68ce7ee7a0fa72e7b28e1b Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 10 Apr 2014 11:27:33 +0930 Subject: [PATCH] no need to preserve folder structure when single file. --- TorrentToMedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 8b5404e4..3fa4ea94 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -92,7 +92,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): for file in filenames: filePath = os.path.join(dirpath, file) fileName, fileExtension = os.path.splitext(file) - if inputCategory in noFlatten: + if inputCategory in noFlatten and not single: newDir = dirpath # find the full path newDir = newDir.replace(inputDirectory, "") #find the extra-depth directory if len(newDir) > 0 and newDir[0] == "/":