mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
sorry! #262
This commit is contained in:
parent
2e07294c4f
commit
9d59c81fee
2 changed files with 3 additions and 2 deletions
|
@ -48,6 +48,8 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
|
||||
inputDirectory, inputName, inputCategory, root = category_search(inputDirectory, inputName, inputCategory, root, categories) # Confirm the category by parsing directory structure
|
||||
|
||||
Logger.debug("MAIN: Determined Directory: %s | Name: %s | Category: %s", inputDirectory, inputName, inputCategory)
|
||||
|
||||
outputDestination = ""
|
||||
for category in categories:
|
||||
if category == inputCategory:
|
||||
|
|
|
@ -40,8 +40,7 @@ def create_destination(outputDestination):
|
|||
|
||||
def category_search(inputDirectory, inputName, inputCategory, root, categories):
|
||||
if not os.path.isdir(inputDirectory) and os.path.isfile(inputDirectory): # If the input directory is a file, assume single file downlaod and split dir/name.
|
||||
inputDirectory = os.path.split(os.path.normpath(inputDirectory))[0]
|
||||
inputName = os.path.split(os.path.normpath(inputDirectory))[1]
|
||||
inputDirectory,inputName = os.path.split(os.path.normpath(inputDirectory))
|
||||
|
||||
if inputCategory and os.path.isdir(os.path.join(inputDirectory, inputCategory)):
|
||||
Logger.info("SEARCH: Found category directory %s in input directory directory %s", inputCategory, inputDirectory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue