From 6909e0edb5105d827e5fd51f486d290e6c1df7ab Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Mon, 4 Mar 2013 15:13:55 -0800 Subject: [PATCH] another small fix --- TorrentToMedia.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 4541feb3..73faab5f 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -32,12 +32,11 @@ def main(inputDirectory, inputName, inputCategory, inputHash): for category in categories: if category == inputCategory: - outputDestination = os.path.normpath(os.path.join(outputDestination, category, inputName)) + outputDestination = os.path.normpath(os.path.join(outputDirectory, category, inputName)) Logger.info("MAIN: Output directory set to: %s", outputDestination) - pass + break else: - Logger.error("MAIN: Could not match input category with defined categories, Exiting") - sys.exit(-1) + continue Logger.debug("MAIN: Scanning files in directory: %s", inputDirectory)