View Single Post
  #1471  
Old 26.07.2020, 07:52
sherbee sherbee is offline
JD Fan
 
Join Date: Mar 2019
Posts: 76
Default

Quote:
Originally Posted by mgpai View Post
That message will be displayed only on 'method of null' error (if 'log' is 'null'). This seems to be a different error which is thrown right at the beginning when executing "archive.getExtractionLog()" method, which disables the script and prevents the rest of the code from being executed.

Alternatively, you can use while loop to check the folder contents of 'open', and execute the script only after it is empty. It might then even work even without 'log = null' check.

Unfortunately I cannot test it since I am unable to reproduce the error. Feel free to find me in JD Chat if need any help with the script/troubleshooting.

Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader
I have new error now.
Code:
getArchiveFiles().forEach(function(archiveFile) {
    // Do something with each archive file
    alert(archiveFile);
})
gives wrong name.
In single cases for example I manual extract file xyz.7z. But 'alert(archiveFile)' gives filename: xyz_2.7z.
When check I see file package name xyz with file name xyz_2.7z alrready in download list from earlier time.
So function not gives name from actual extract, but from some extraction earlier.
I can see in log from actual extract, that correct file xyz.7z i have select.

That is not good.
I see 3 times now. Always same: Extract file filename.7z manual. but name shows filename_2.7z and after check I see file with filename_2.7z already in download list from time ago. Actual log but show filename.7z.

Maybe it same reasen that makes bug I have report: https://board.jdownloader.org/showpo...54&postcount=8

It's problem because I take 'archiveFile' for move file automaticall after extract. So when it gives wrong filename, file cannot find to move.

Last edited by sherbee; 26.07.2020 at 07:58.
Reply With Quote