diff --git a/website/scripts/amc.groovy b/website/scripts/amc.groovy index 44cf039c..7f70688e 100644 --- a/website/scripts/amc.groovy +++ b/website/scripts/amc.groovy @@ -86,8 +86,8 @@ input = input.flatten() def tempFiles = [] input = input.flatten{ f -> if (f.isArchive() || f.hasExtension('001')) { - def extractDir = new File(f.parentFile, f.nameWithoutExtension) - def extractFiles = extract(file: f, output: extractDir, conflict: 'override', filter: { it.isArchive() || it.isVideo() || it.isSubtitle() || (music && it.isAudio()) }, forceExtractAll: true) ?: [] + def extractDir = new File(f.dir, f.nameWithoutExtension) + def extractFiles = extract(file: f, output: new File(extractDir, f.dir.name), conflict: 'override', filter: { it.isArchive() || it.isVideo() || it.isSubtitle() || (music && it.isAudio()) }, forceExtractAll: true) ?: [] tempFiles += extractDir tempFiles += extractFiles return extractFiles