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

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

alert(filePaths.join("\n"));
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