diff --git a/TorrentToMedia.py b/TorrentToMedia.py index e059a99a..373890a8 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -129,6 +129,8 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): if inputCategory in noFlatten: newDir = dirpath # find the full path 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. Logger.debug("MAIN: Setting outputDestination to %s to preserve folder structure", outputDestination) diff --git a/changelog.txt b/changelog.txt index aaad291e..5a05c801 100644 --- a/changelog.txt +++ b/changelog.txt @@ -13,6 +13,10 @@ Fix Error with manual run of nzbToMedia Make sure SickBeard receives the individula download dir. 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 Impacts All