Page 1 of 1

[AMC] No Extraction

Posted: 16 Jan 2014, 06:59
by cheesemaker
Please add the option for no automatic extraction to the amc script.

Regards,

Code: Select all

def extract   = tryQuietly{ extract.toBoolean() }
[...]
// extract archives (zip, rar, etc) that contain at least one video file
def extractedArchives = []
def tempFiles = []
input = input.flatten{ f ->
        if ((f.isArchive() || f.hasExtension('001')) && extract) {
                def extractDir = new File(f.dir, f.nameWithoutExtension)
                def extractFiles = extract(file: f, output: new File(extractDir, f.dir.name), conflict: 'skip', filter: { it.isArchive() || it.isVideo() || it.isSubtitle() || (music && it.isAudio()) }, forceExtractAll: true) ?: []

                if (extractFiles.size() > 0) {
                        extractedArchives += f
                        tempFiles += extractDir
                        tempFiles += extractFiles
                }
                return extractFiles
        }
        return f
}
}

Re: [AMC] No Extraction

Posted: 16 Jan 2014, 07:51
by rednoah
You have a point, but why wouldn't you want it to extract archives? Which archives do you not want to be extracted?

Re: [AMC] No Extraction

Posted: 16 Jan 2014, 16:30
by cheesemaker
Hi rednoah,

I'm extracting all my archives with pyload (another download manager). Mostly my archives are password protected, so extracting with filebot is useless and also (I'm not sure) the extracted files will be corrupted (because of no password)

regards,

Re: [AMC] No Extraction

Posted: 16 Jan 2014, 16:35
by rednoah
So if the archive is password protected it still gets extracted but in a corrupt state?

Because filebot only extracts archives that contain at least one video file, and i guess if the archive is encrypted then it'll already fail at that point.