#2501
|
||||
|
||||
![]()
@bugs.bunny: thanks for the feedback and confirmation that the script works again as intended
![]()
__________________
JD-Dev & Server-Admin |
#2502
|
|||
|
|||
![]() Quote:
I just discovered this script, which is about 95% what I was looking for. How do I have to modify the script that the extraction of the PACKAGE will start as soon as ALL links inside of this package are downloaded? Right now the script waits until all packages are completly downloaded. In my case I do have often several packages with 2 or more archives. Example: Package 1: archive_A_part1.rar archive_A_part2.rar archive_B_part1.rar archive_B_part2.rar Package 2: archive_AA_part1.rar archive_AA_part2.rar archive_AA_part3.rar archive_AA_part4.rar As soon as all parts of archive_A and archive_B (the complete Package 1) are downloaded the extraction should start. Edit: Sorry... forgot to mention that my question is related to this script: https://board.jdownloader.org/showpo...&postcount=349 Alright... just figured it out by myself. Simpler than I thought. Now my script looks like this: Code:
// Extract all archives after thecomplete package is finished // Trigger Required: Package Finished // In "Archive Extractor" settings, disable the "Extract archives after download (default value)" checkbox // Related Post: https://board.jdownloader.org/showpost.php?p=418712&postcount=345 if (package.isFinished()) startExtraction(); function startExtraction() { getAllDownloadLinks().forEach(function(link) { if (!link.getArchive()) return; if (!link.isFinished()) return; if (link.getExtractionStatus() != null) return; if (link.getArchive().getInfo().autoExtract == false) return; callAPI("extraction", "startExtractionNow", [link.getUUID()], []); }); } Last edited by Ciesto; 04.12.2022 at 22:37. Reason: forget to mention for which cript my question is. |
#2503
|
|||
|
|||
![]() Quote:
I got this error when running this script: ReferenceError: "link" is not defined. (#9) EDIT: Another thing I wanted to ask you is if I can separately combine the scripts: Randomize download order (https://board.jdownloader.org/showth...967#post492967) and Random delay before download, or should they both be in the same script? Last edited by nano27; 07.12.2022 at 00:47. |
#2504
|
||||
|
||||
![]()
@nano27: have you made sure to use the correct trigger like advised in script?
__________________
JD-Dev & Server-Admin |
#2505
|
|||
|
|||
![]() Quote:
{ "eventTrigger" : "ON_DOWNLOAD_CONTROLLER_START", "eventTriggerSettings" : {}, "id" : 1670418113394, "name" : "delay", "script" : null, "enabled" : true } ] In this case no error box appears, but the code doesn't work as it is 'null'. Last edited by nano27; 07.12.2022 at 15:15. |
#2506
|
||||
|
||||
![]()
@nano27: edit the scripts in JDownloader with GUI and then copy/paste the advanced Settings.
__________________
JD-Dev & Server-Admin |
#2507
|
|||
|
|||
![]() Quote:
What I did is paste the code in the Event Scripter: Quote:
{ "eventTrigger" : "ON_DOWNLOAD_CONTROLLER_START", "eventTriggerSettings" : {}, "id" : 1670418113394, "name" : "delay", "script" : null, "enabled" : true } ] So, the event trigger is wrong and the script is null. I've tried deleting the script and repeating the process, but always get the same result. |
#2508
|
||||
|
||||
![]()
@nano27: You should use a JDownloader with GUI so you can GUI to setup your Eventscripter scripts and once finished with setup , then copy/paste EventScripter settings from Advanced Settings.
When you do it manually, you have to escape the script as JSON String and enter it in "script" field. That's why we recommend to use JDownloader with GUI for setup
__________________
JD-Dev & Server-Admin |
#2509
|
|||
|
|||
![]() Quote:
Last edited by nano27; 08.12.2022 at 07:06. |
#2510
|
|||
|
|||
![]()
Could you make a script that pauses (sleep) for a random amount of time, every random amount of time between pauses, regardless of whether the file download has finished or not?
Last edited by nano27; 08.12.2022 at 07:05. |
#2511
|
|||
|
|||
![]()
HI I am looking for a script that starts ( move from LinkGrabber to downloads ) the first ( alphabetical or first in list ) file in all Packages in the LinkGrabber .
So if I have 300Packages in the LinkGrabber that then 300 Downloads packages ( also as sub-folder with package name ) are created, each one with the first file in the LinkGrabber package. After that I still have 300Packages in the LinkGrabber Tab but each one with one file less in it. Reason: I often create big packages and want to analyze what kind of files are in it. For this right now i manually start to download the first file of each package and then use a windows batch file to analyze all downloaded files. But I have to spend a lot of clicking each time in JDownloader. Maybe someone can offer me a Skeleton that does something similar and I can try to finish it myself, I have some basic programming experience but not that much. Maybe someone who is good ad Event Scripter can do this in a quick time ![]() |
#2512
|
|||
|
|||
![]()
A switcher (icon, keyboard) to quickliy / easily switch between Firefox and Chrome to automatically let JD solve the captchas in the one or the other browser would be nice.
https://board.jdownloader.org/showth...448#post514448
__________________
Aktuelles Windows |
#2513
|
||||
|
||||
![]() Quote:
https://board.jdownloader.org/showpo...postcount=2507 Quote:
Or do you mean something different?
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 08.12.2022 at 12:41. |
#2514
|
||||
|
||||
![]() Quote:
__________________
JD-Dev & Server-Admin |
#2515
|
|||
|
|||
![]()
@Jiaz
A script that just enables the first file of all packages in my download list is sufficient ![]() Last edited by DerChrimtess; 08.12.2022 at 20:56. |
#2516
|
|||
|
|||
![]()
Is there any possibility to create a script that slows down the linkcrawler?
Instagram blocks my account every time I add a profile to download. I'm assuming it's because JDowloader 'scans' the profile too fast and suspects there's a bot behind it. |
#2517
|
||||
|
||||
![]()
@nano27: JDownloader has dedicated rate limit for IG, see Settings->Advanced Settings->instagram.com but most likely your account is flagged and you should use a different one for crawling/downloading.
__________________
JD-Dev & Server-Admin |
#2518
|
|||
|
|||
![]()
resolved deleted
Last edited by molitar; 09.12.2022 at 10:42. |
#2519
|
||||
|
||||
![]()
@molitar:
Quote:
Also you have to correct escape your path Code:
\' single quote \" double quote \\ backslash \n newline \r carriage return \t tab \b backspace \f form feed
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 09.12.2022 at 12:21. |
#2520
|
||||
|
||||
![]() Quote:
Update: see here for script that enables first link of each package, disables the rest, in download list you can place it at any trigger that suits you best Code:
getAllFilePackages().forEach(function(package) { var first = true; package.getDownloadLinks().forEach(function(link) { if (first) { link.setEnabled(true); first = false; } else { link.setEnabled(false); } }); });
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 09.12.2022 at 12:27. |
![]() |
Thread Tools | |
Display Modes | |
|
|