View Single Post
  #2026  
Old 07.11.2021, 12:16
Gbyte Gbyte is offline
I will play nice!
 
Join Date: Nov 2021
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
@Gbyte:
Extraction.customextractionpathenabled
and
Extraction.customextractionpath
Now i get this error or is the mistake on my end?

I use this script in the event scripter:

Code:
var script = '/REDACTED/jdownloader-postprocess.sh'

var package = archive.getDownloadLinks() ? archive.getDownloadLinks()[0].getPackage() : null
var links = package ? package.getDownloadLinks() : []

function isReallyFinished() {
    for (var i = 0; i < links.length; i++) {
        if (links[i].getArchive() != null && links[i].getExtractionStatus() != "SUCCESSFUL" || !package.isFinished()) {
            return false
        }
    }
    return true
}

if (package && isReallyFinished()) {
    var command = [script, Extraction.customextractionpath(), package.getName(), package.getComment() ? package.getComment() : 'N/A', 'ARCHIVE_EXTRACTED']
    log(command)
    log(callSync(command))
}
Attached Images
File Type: png 88567576.png (233.1 KB, 1 views)
Reply With Quote