mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
no need to preserve folder structure when single file.
This commit is contained in:
parent
810f37edbf
commit
41ac893c81
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
||||||
for file in filenames:
|
for file in filenames:
|
||||||
filePath = os.path.join(dirpath, file)
|
filePath = os.path.join(dirpath, file)
|
||||||
fileName, fileExtension = os.path.splitext(file)
|
fileName, fileExtension = os.path.splitext(file)
|
||||||
if inputCategory in noFlatten:
|
if inputCategory in noFlatten and not single:
|
||||||
newDir = dirpath # find the full path
|
newDir = dirpath # find the full path
|
||||||
newDir = newDir.replace(inputDirectory, "") #find the extra-depth directory
|
newDir = newDir.replace(inputDirectory, "") #find the extra-depth directory
|
||||||
if len(newDir) > 0 and newDir[0] == "/":
|
if len(newDir) > 0 and newDir[0] == "/":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue