Do not remove release group information from base folder

This commit is contained in:
Rato 2016-05-17 21:23:56 +02:00
commit 9225aa26ae

View file

@ -112,7 +112,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
# Incase input is not directory, make sure to create one.
# This way Processing is isolated.
if not os.path.isdir(os.path.join(inputDirectory, inputName)):
basename = os.path.splitext(core.sanitizeName(inputName))[0]
basename = os.path.basename(inputDirectory)
basename = core.sanitizeName(inputName) \
if inputName == basename else os.path.splitext(core.sanitizeName(inputName)[0])
outputDestination = os.path.join(core.OUTPUTDIRECTORY, inputCategory, basename)
elif uniquePath:
outputDestination = os.path.normpath(