From 01314eba5578c513ec6bc6eabf65391ab91be266 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Fri, 14 Feb 2014 14:38:45 +1030 Subject: [PATCH] fix finding file as path from input dir. fixes #262 --- autoProcess/nzbToMediaUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoProcess/nzbToMediaUtil.py b/autoProcess/nzbToMediaUtil.py index ac880ebe..dc800461 100644 --- a/autoProcess/nzbToMediaUtil.py +++ b/autoProcess/nzbToMediaUtil.py @@ -135,7 +135,7 @@ def category_search(inputDirectory, inputName, inputCategory, root, categories): Logger.info("SEARCH: We will try and determine which files to process, individually") root = 2 break - elif inputName and safeName(categorySearch2[1]) == safeName(inputName): # we have identified a unique directory. + elif inputName and safeName(categorySearch2[1]) == safeName(inputName) and os.path.isdir(categorySearch[0]): # we have identified a unique directory. Logger.info("SEARCH: Files appear to be in their own directory") unique = int(1) if inputCategory: # we are ok to proceed.