mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Merge pull request #1062 from andrzejc/dev
TorrentToMedia: fix invalid indexing scope, select first el. of pair not char
This commit is contained in:
commit
c05589a2c4
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
||||||
if not os.path.isdir(os.path.join(inputDirectory, inputName)):
|
if not os.path.isdir(os.path.join(inputDirectory, inputName)):
|
||||||
basename = os.path.basename(inputDirectory)
|
basename = os.path.basename(inputDirectory)
|
||||||
basename = core.sanitizeName(inputName) \
|
basename = core.sanitizeName(inputName) \
|
||||||
if inputName == basename else os.path.splitext(core.sanitizeName(inputName)[0])
|
if inputName == basename else os.path.splitext(core.sanitizeName(inputName))[0]
|
||||||
outputDestination = os.path.join(core.OUTPUTDIRECTORY, inputCategory, basename)
|
outputDestination = os.path.join(core.OUTPUTDIRECTORY, inputCategory, basename)
|
||||||
elif uniquePath:
|
elif uniquePath:
|
||||||
outputDestination = os.path.normpath(
|
outputDestination = os.path.normpath(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue