Merge pull request #1062 from andrzejc/dev

TorrentToMedia: fix invalid indexing scope, select first el. of pair not char
This commit is contained in:
Clinton Hall 2016-06-12 08:25:36 +09:30 committed by GitHub
commit c05589a2c4

View file

@ -114,7 +114,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
if not os.path.isdir(os.path.join(inputDirectory, inputName)):
basename = os.path.basename(inputDirectory)
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)
elif uniquePath:
outputDestination = os.path.normpath(