mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
fix join of extra path into outputdirectory. fixes #262
This commit is contained in:
parent
13730ae659
commit
0ac9cea833
2 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,8 @@ 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] == "/":
|
||||||
|
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)
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,10 @@ Fix Error with manual run of nzbToMedia
|
||||||
Make sure SickBeard receives the individula download dir.
|
Make sure SickBeard receives the individula download dir.
|
||||||
Disabled SickBeard Torrent handling for NZBs. Fixes failed handling of nzbs that fail to extract.
|
Disabled SickBeard Torrent handling for NZBs. Fixes failed handling of nzbs that fail to extract.
|
||||||
|
|
||||||
|
Impacts Torrents
|
||||||
|
Added option to run userscript once only (on directory)
|
||||||
|
Added Option to not flatten specific categories.
|
||||||
|
|
||||||
V9.1 24/01/2014
|
V9.1 24/01/2014
|
||||||
|
|
||||||
Impacts All
|
Impacts All
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue