mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
set root = 0 to prevent crash. fixes #383
This commit is contained in:
parent
23f6fdc214
commit
9b2e74b59c
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ def makeDir(path):
|
||||||
|
|
||||||
def category_search(inputDirectory, inputName, inputCategory, root, categories):
|
def category_search(inputDirectory, inputName, inputCategory, root, categories):
|
||||||
tordir = False
|
tordir = False
|
||||||
|
root = 0
|
||||||
if inputDirectory is None: # =Nothing to process here.
|
if inputDirectory is None: # =Nothing to process here.
|
||||||
return inputDirectory, inputName, inputCategory, root
|
return inputDirectory, inputName, inputCategory, root
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ def category_search(inputDirectory, inputName, inputCategory, root, categories):
|
||||||
logger.info("SEARCH: Setting inputDirectory to %s" % (inputDirectory))
|
logger.info("SEARCH: Setting inputDirectory to %s" % (inputDirectory))
|
||||||
tordir = True
|
tordir = True
|
||||||
elif inputName and os.path.isfile(os.path.join(inputDirectory, inputName)):
|
elif inputName and os.path.isfile(os.path.join(inputDirectory, inputName)):
|
||||||
logger.info("SEARCH: Found torrent directory %s in input directory directory %s" % (inputName, inputDirectory))
|
logger.info("SEARCH: Found torrent file %s in input directory directory %s" % (inputName, inputDirectory))
|
||||||
inputDirectory = os.path.join(inputDirectory, inputName)
|
inputDirectory = os.path.join(inputDirectory, inputName)
|
||||||
logger.info("SEARCH: Setting inputDirectory to %s" % (inputDirectory))
|
logger.info("SEARCH: Setting inputDirectory to %s" % (inputDirectory))
|
||||||
tordir = True
|
tordir = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue