From fff690de79e7c2fb910f8cfa910fab52e274b1f3 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 6 Feb 2014 16:50:21 +1030 Subject: [PATCH] pass on individula directory. fixes #255 --- autoProcess/autoProcessTV.py | 7 +++++++ changelog.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/autoProcess/autoProcessTV.py b/autoProcess/autoProcessTV.py index be1ced47..262573b5 100644 --- a/autoProcess/autoProcessTV.py +++ b/autoProcess/autoProcessTV.py @@ -107,6 +107,13 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None): mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',') minSampleSize = int(config.get("Extensions", "minSampleSize")) + SpecificPath = os.path.join(dirName, nzbName) + cleanName = os.path.splitext(SpecificPath) + if cleanName[1] == ".nzb": + SpecificPath = cleanName[0] + if os.path.isdir(SpecificPath): + dirName = SpecificPath + if not fork in SICKBEARD_TORRENT: process_all_exceptions(nzbName.lower(), dirName) nzbName, dirName = converto_to_ascii(nzbName, dirName) diff --git a/changelog.txt b/changelog.txt index c6d25244..e656013c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Fixed ascii conversion of directory name. Impacts NZBs Fix Error with manual run of nzbToMedia +Make sure SickBeard receives the individula download dir. V9.1 24/01/2014