Quote:
Originally Posted by mgpai
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.