#1561
|
|||
|
|||
![]()
Thank you very much!
I have to replace the last two of these (three related) scripts with that new one, is it right: ![]() Is there a way to mark (by color or so) / recognize scripts belonging together in the Even Scripter?
__________________
Aktuelles Windows Last edited by Dockel; 25.10.2020 at 08:41. |
#1562
|
|||
|
|||
![]()
Yes. Correct.
|
#1563
|
|||
|
|||
![]()
OK, all done. Works great! Many thanks again!
__________________
Aktuelles Windows |
#1564
|
||||
|
||||
![]() Quote:
__________________
JD-Dev & Server-Admin |
#1565
|
|||
|
|||
![]()
Yes, that would be great, of course! Thank you!
So here, may be a second (colored) arrow (within a column or so): ![]()
__________________
Aktuelles Windows |
#1566
|
|||
|
|||
![]()
Could someone maybe help me out please?
I am trying to make a 'new crawler job' script, but the 'var myCrawlerJob = job;' line to get the added job doesn't seem to work. it always results in an undefined variable. ![]() Thanks in advance! |
#1567
|
|||
|
|||
![]()
Appears to be working fine. Can you post the script here or provide more information it?
|
#1568
|
||||
|
||||
![]()
@Dockel: It would prefer "color picker" within the already existing edit dialog
@abrenoch: please provide your script and also what trigger you are using
__________________
JD-Dev & Server-Admin |
#1569
|
|||
|
|||
![]() Quote:
__________________
Aktuelles Windows |
#1570
|
|||
|
|||
![]() Quote:
Code:
// Trigger required: "New Crawler Job". var myCrawlerJob = job; function log(content) { writeFile(JD_HOME + "/log.txt", JSON.stringify(content) + "\r\n", true); } log(Date.now()) log(myCrawlerJob) 1603847718298 undefined Per the help section, it seems like I should be getting something: // ========= Properties for the EventTrigger 'New Crawler Job' ========= var myCrawlerJob = job; I'm just trying to test things at this point Last edited by abrenoch; 28.10.2020 at 03:28. |
#1571
|
||||
|
||||
![]()
Working fine here. Have you made sure to set the trigger to "New Crawler Job"?
__________________
JD-Dev & Server-Admin |
#1572
|
|||
|
|||
![]()
It is a sandbox object, and as such you cannot 'stringify' it. You have to use the corresponding object methods to access the listed properties and then write them to a file.
|
#1573
|
|||
|
|||
![]() Quote:
I was trying that as well... But when I tried to 'getSourceUrl' I would only ever get a "cannot call method getSourceUrl of undefined". I'll try again after updating, but I had that thought as well and calling a method didn't seem to help. |
#1574
|
||||
|
||||
![]()
@abrenoch: no updates because no issues. Just tried and worked fine on first try.
Can you show a screenshot of the eventscripter extension, table/list of scripts
__________________
JD-Dev & Server-Admin |
#1575
|
|||
|
|||
![]() Quote:
![]() Sending the url to this forum post, for example, yielded a couple triggers but always an 'undefined' job: 1603922086067 undefined 1603922097095 undefined Thanks for the help! |
#1576
|
||||
|
||||
![]()
As mgpai already explained, you cannot JSON.stringify on the job as it is no Object/Map that supports JSON conversion.
You have to write out the fields you are interested in Quote:
__________________
JD-Dev & Server-Admin Last edited by raztoki; 29.10.2020 at 12:38. |
#1577
|
|||
|
|||
![]()
Hey guys, ive been looking to enable some sort of multi directory duplicate check, just like it is now, except multiple directories ( 2nd - 3rd ssd , external hdds ) etc. I searched a good while, came upon this thread, and have searched it. Didnt find a final solution, anyone point me in the right direction?
Thanks. |
#1578
|
|||
|
|||
![]() Quote:
Scanning/matching entire contents of multiple drives using a script is resource intensive and time consuming. By the time a dupe is detected, the file would have triggered captcha and/or will be partially downloaded. The download locations are usually limited to certain folders. Optimal method would be to use a script to specify/scan only those folders and disable the links. Such a script can be found HERE. |
#1579
|
|||
|
|||
![]()
Hi. I've been wondering if it's possible to tidy up my download list with a script.
Is it possible to combine multiple downloaded links, with the same package name and same download directory, into a single package? I've got over 127,000 downloaded links that I keep to avoid adding duplicates. If I could combine packages and sort files within them from newest to oldest, it would look much more organized. EDIT: if matching both package name and directory is too much, I'd say grouping by directory and using its name as the package name would suffice. Last edited by GreenXIII; 04.11.2020 at 19:56. |
#1580
|
||||
|
||||
![]()
@GreenXIII: should be possible , maybe mgpai can help you with it
![]() ![]()
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|