View Single Post
  #1465  
Old 25.07.2020, 10:07
sherbee sherbee is offline
JD Fan
 
Join Date: Mar 2019
Posts: 76
Default

Quote:
Originally Posted by mgpai View Post
You can modify the code to also get file paths of archives with links:
Code:
var getArchiveFiles = function() {
    return archive.getExtractionLog().match(/\((DownloadLink|File)ArchiveFile\)File:[^|]+/g).map(function(string) {
        return string.replace(/.+?:(.+)/, "$1");
    });
}
But when use with manual extract it gives: 'TypeError: Cannot call method "match" of null' for this line of code:

Code:
return archive.getExtractionLog().match(/\((DownloadLink|File)ArchiveFile\)File:[^|]+/g).map(function(string) {
What I do is open 1 single package for extract, not multi archive or something. Then it extract, but then show this error.

I don't know what is wrong for automatic extraction after download no such error.

Last edited by sherbee; 25.07.2020 at 10:09.
Reply With Quote