[AMC] No Extraction

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

[AMC] No Extraction

Post 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
}
}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] No Extraction

Post 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?
:idea: Please read the FAQ and How to Request Help.
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

Re: [AMC] No Extraction

Post 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,
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] No Extraction

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply