#2481
|
|||
|
|||
![]()
Hello, I'm new here.
I'd like to ask for a script. In my mind it would do the following: - Check an array of links from the same site (eg. multiple threads from an image board) - Grab every relevant file along with when they were posted down to the second - Sort by when they were posted to split the packages as needed. The reason why I want it that way, is because with my current script (only 9 lines at time of writing), it checks every 30 minutes, in a hardcoded order and I have to manually check every file, since all of the links were added at the same time. I also want it to work with links affected by my packagizer rule (it just changes filenames if the package has a matching number and sourceurl). Thank you in advance! |
#2482
|
||||
|
||||
![]()
I'm not sure if an EventScripter script is the right choice for that.
If I were you I'd choose any of these other options:
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2483
|
|||
|
|||
![]() Quote:
Mostly asking to understand its limitations. EDIT: Forgot to mention, the only site I use my script for is 4chan. Last edited by PaleWoodChip; 10.11.2022 at 15:14. Reason: Clarification |
#2484
|
||||
|
||||
![]() Quote:
I'd just prefer to do such crawling tasts from "outside JD" or via plugin and not via such a script. It's only a personal preference.
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2485
|
||||
|
||||
![]()
@MKey
Bugfix for your report in your post #2439 have just been released. CORE-Updates have been released! All announced bugfixes and features are live! Please update your JDownloader and report any issues you find asap. If this thread gets marked as "[Solved]" by our forum staff you can still post in it and we will read- and reply to it! CORE-Updates wurden released! Alle angekündigten Bugfixes/Features sind nun verfügbar! Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden. Falls dieser Thread vom Team als "[Erledigt]" markiert wird, kannst du weiterhin darin antworten und wir lesen/beantworten auch solche Threads! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2486
|
|||
|
|||
![]()
Hi everyone,
may I ask a question where to find Event Scripter related logfiles? I'm running a headless JDownloader (but this shouldn't be the deciding factor) and have two "Events" set up: 1. Automatically update JD when it is in idle (script from Knowledge Base, just copy and pasted) 2. auto-unskip (from mgpai's repository: **External links are only visible to Support Staff****External links are only visible to Support Staff**, as stated here at post 523: https://board.jdownloader.org/showpo...&postcount=523) The 1st one auto-update works like a charm, but the 2nd one auto-unskip maybe doesn't always. Now I wanted to check the logfiles if I can find something useful. But after a quick overfly about the files in logs/, I couldn't find anything related to the auto-unskip event... Can someone please help me finding the right direction? Thanks a lot and best regards, bugs.bunny |
#2487
|
|||
|
|||
![]()
Hi there, I'd like to request support for a new premium site -- and would be willing to contribute $$$ to the project in order for it to be supported. Is there a particular place for people like me to make these requests?
I'm new to the forums, sorry if this is the wrong place :( |
#2488
|
||||
|
||||
![]()
@areaprogrammer: wrong thread but that's okay
![]()
__________________
JD-Dev & Server-Admin |
#2489
|
|||
|
|||
![]()
Hi,
I'm looking for way to check in Event Scripter, whether the "JD Shutdown" extenstion is currently activated. I want to point out, that I'm not looking for "enabled" or "installed". (I was not able to find related documentation) Thank you ![]() edit: No wait - I think I found something here https://board.jdownloader.org/showpo...5&postcount=21 ![]() Last edited by Johsnon; 26.11.2022 at 00:14. |
#2490
|
|||
|
|||
![]()
Is there a way for JD to script a scheduled re-downloading of a particular file (at an unchanging URL)?
There's a repo file I need to re-download periodically to check if it's been updated. It'd be great if JD2 could automatically download this file on a schedule, like download it every 48-hours, on JD's own. Not sure if that's possible, though. |
#2491
|
||||
|
||||
![]()
@Johsnon:Still need help?
@Coldblackice:this can be done with a script for eventscripter. you just want to download again and again the same link in list, so download, reset, wait, download, right? Please look through this thread and in case you need help/a hint, please ask/contact mgpai, our script master ![]()
__________________
JD-Dev & Server-Admin |
#2492
|
|||
|
|||
![]()
nope, I'm fine, thx
|
#2493
|
|||
|
|||
![]() Quote:
But I'm guessing hashing is beyond the ability scope of JD (which isn't a big ordeal). |
#2494
|
||||
|
||||
![]() Quote:
JDownloader could do that for sure, but for *file exists on disk checks* only filename/filesize are used because hash calculation of existing files will have major impact on system/disk/JDownloader performance. But with Eventscripter this can be possible to do. I just have to create some new script methods to calculate hash.
__________________
JD-Dev & Server-Admin |
#2495
|
|||
|
|||
![]() Quote:
I was able to "capture" the issue today. JDownloader says "Übersprungen - Captcha-Eingabe erforderlich", please see attachment. And it won't resume like the script should do. If I check "Advanced Settings" - "EventScripter: Scripts" I can see that the script is executed regularly. Right at the moment with "lastFire":1669922359027 (which is 01.12.2022 20:19:19.027 GMT+01:00), so a few minutes ago. But the skipped packages stays in its state. Is there a way to find out what's going on? Is there a specific logfile? Here is the code snippet copy/pasted directly from "Advanced Settings": Code:
{ "eventTrigger" : "INTERVAL", "eventTriggerSettings" : { "lastFire" : 1669922359027, "interval" : 3600000, "isSynchronous" : true }, "id" : 1662975091080, "name" : "auto-unskip", "script" : "// Unskip links with unsolved captcha\n// Trigger: Interval\n// Set interval to 3600000 (60 minutes) or more\n// Enable 'Synchronous Execution' checkbox in top panel\n// Related Post: https: //board.jdownloader.org/showpost.php?p=432828&postcount=522\n\n(function() {\n if (!isSynchronous()) return;\n if (interval < 60 * 60 * 1000) return;\n getAllDownloadLinks().forEach(function(link) {\n if (link.getSkippedReason() == \"CAPTCHA\") {\n link.setSkipped(false);\n if (!isDownloadControllerRunning()) startDownloads();\n }\n });\n})();", "enabled" : true } |
#2496
|
||||
|
||||
![]()
@bugs.bunny: script looks good and can't see why it should not work as intended.
Quote:
Quote:
also remove/comment the interval check line and set shorter interval to see results faster. then for example start a download and manually skip the captcha to reach this state and with interval of 1 minute, you should see results very fast
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 02.12.2022 at 12:07. |
#2497
|
||||
|
||||
![]()
@bugs.bunny: Just got a reminder by mgpai that the interval script no longer supports synchronous execution. just remoev the line
Quote:
![]()
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 02.12.2022 at 13:02. |
#2498
|
|||
|
|||
![]()
I can confirm that adding the line
Code:
alert("test"); So I leave everything as it is and check again after the next core update? Did I get you right? |
#2499
|
||||
|
||||
![]() Quote:
![]()
__________________
JD-Dev & Server-Admin |
#2500
|
|||
|
|||
![]()
Wow... Just a few hours later the auto-updater updates JDownloader to Rev: #47153 and ***drum roll*** it works! :-) Incredible! Thank you so much for your support! Keep on rollin'!
|
![]() |
Thread Tools | |
Display Modes | |
|
|