pass on individula directory. fixes #255

This commit is contained in:
clinton-hall 2014-02-06 16:50:21 +10:30
commit fff690de79
2 changed files with 8 additions and 0 deletions

View file

@ -107,6 +107,13 @@ def processEpisode(dirName, nzbName=None, failed=False, inputCategory=None):
mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',') mediaContainer = (config.get("Extensions", "mediaExtensions")).split(',')
minSampleSize = int(config.get("Extensions", "minSampleSize")) 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: if not fork in SICKBEARD_TORRENT:
process_all_exceptions(nzbName.lower(), dirName) process_all_exceptions(nzbName.lower(), dirName)
nzbName, dirName = converto_to_ascii(nzbName, dirName) nzbName, dirName = converto_to_ascii(nzbName, dirName)

View file

@ -9,6 +9,7 @@ Fixed ascii conversion of directory name.
Impacts NZBs Impacts NZBs
Fix Error with manual run of nzbToMedia Fix Error with manual run of nzbToMedia
Make sure SickBeard receives the individula download dir.
V9.1 24/01/2014 V9.1 24/01/2014