From d9c8e2ed6da191177597df937d2fa76fd40f2c01 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Mon, 4 Nov 2013 21:55:27 +1030 Subject: [PATCH] Stop endless looping. Fixes #185 --- autoProcess/nzbToMediaUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoProcess/nzbToMediaUtil.py b/autoProcess/nzbToMediaUtil.py index 98b86411..72be6e79 100644 --- a/autoProcess/nzbToMediaUtil.py +++ b/autoProcess/nzbToMediaUtil.py @@ -89,7 +89,7 @@ def category_search(inputDirectory, inputName, inputCategory, root, categories): Logger.info("SEARCH: Changing Torrent Name to %s to preserve imdb id.", categorySearch[1]) inputName = categorySearch[1] Logger.info("SEARCH: Identified Category: %s and Torrent Name: %s. We are in a unique directory, so we can proceed.", inputCategory, inputName) - break # we are done + break # we are done elif categorySearch[1] and not inputName: # assume the the next directory deep is the torrent name. Logger.info("SEARCH: Found torrent directory %s in category directory %s", os.path.join(categorySearch[0], categorySearch[1]), categorySearch[0]) inputName = categorySearch[1]