View Single Post
Old 24.07.2020, 08:30
sherbee sherbee is offline
JD Fan
Join Date: Mar 2019
Posts: 76

Originally Posted by mgpai View Post
var filePaths = archive.getExtractionLog().match(/\(FileArchiveFile\)File:[^|]+/g).map(function(filePath) {
    return filePath.replace(/.+?:(.+)/, "$1");

Have idea how make distinguish between manual and automatical extract?
i make so: var links = archive.getDownloadLinks() || [];

And then if links.length > 0 I take it for automatical extract otherwise I take it for manual extract.
Is safe? Or better idea?
Because your code must only run when manual extract.

Last edited by sherbee; 24.07.2020 at 10:36.
Reply With Quote