mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
don't truncate a null string. Fixes #262
This commit is contained in:
parent
52d3b016f0
commit
71f35179c7
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
||||||
if inputCategory in noFlatten:
|
if inputCategory in noFlatten:
|
||||||
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 newDir[0] == "/":
|
if len(newDir) > 0 and newDir[0] == "/":
|
||||||
newDir = newDir[1:] # remove leading "/" to enable join to work.
|
newDir = newDir[1:] # remove leading "/" to enable join to work.
|
||||||
outputDestination = os.path.join(outputDestinationMaster, newDir) # join this extra directory to output.
|
outputDestination = os.path.join(outputDestinationMaster, newDir) # join this extra directory to output.
|
||||||
Logger.debug("MAIN: Setting outputDestination to %s to preserve folder structure", outputDestination)
|
Logger.debug("MAIN: Setting outputDestination to %s to preserve folder structure", outputDestination)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue