mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
replace .cbz and .cbr with .zip and .rar. fixes #351
This commit is contained in:
parent
39bf06f358
commit
0c8ce3917b
3 changed files with 9 additions and 4 deletions
|
@ -125,7 +125,10 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
for inputFile in inputFiles:
|
||||
filePath = os.path.dirname(inputFile)
|
||||
fileName, fileExt = os.path.splitext(os.path.basename(inputFile))
|
||||
fullFileName = os.path.basename(inputFile)
|
||||
if fileExt in nzbtomedia.EXT_REPLACE:
|
||||
fullFileName = fileName + nzbtomedia.EXT_REPLACE[fileExt]
|
||||
else:
|
||||
fullFileName = os.path.basename(inputFile)
|
||||
|
||||
targetFile = nzbtomedia.os.path.join(outputDestination, fullFileName)
|
||||
if inputCategory in nzbtomedia.NOFLATTEN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue