mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
single file torrent sub directory name changed. fixes #176
This commit is contained in:
parent
889efcde32
commit
ea80cbaf24
3 changed files with 12 additions and 2 deletions
|
@ -40,8 +40,13 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
|
||||
for category in categories:
|
||||
if category == inputCategory:
|
||||
outputDestination = os.path.normpath(os.path.join(outputDirectory, category, safeName(inputName)))
|
||||
Logger.info("MAIN: Output directory set to: %s", outputDestination)
|
||||
if os.path.basename(inputDirectory) == inputName:
|
||||
Logger.info("MAIN: Download is a directory")
|
||||
outputDestination = os.path.normpath(os.path.join(outputDirectory, category, safeName(inputName)))
|
||||
else:
|
||||
Logger.info("MAIN: Download is not a directory")
|
||||
outputDestination = os.path.normpath(os.path.join(outputDirectory, category, os.path.splitext(safeName(inputName))[0]))
|
||||
Logger.info("MAIN: Output directory set to: %s", outputDestination)
|
||||
break
|
||||
else:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue