mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Merge pull request #1037 from ratoaq2/patch-3
Do not remove codec/release_group information from base folder
This commit is contained in:
commit
c1de432a3f
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue