#2561
|
||||
|
||||
![]()
Merged EventScripter threads.
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2562
|
|||
|
|||
![]()
Hello,
I would like to request a script where JDownloader would automatically skip the download of the same matching filename with a different extension. Example - If I have Apple.zip in my directory, and if JDownloader is about to download Apple.7z, it would skip the download. It should work for any extension. Thank you. Last edited by golddust; 25.02.2023 at 08:22. |
#2563
|
|||
|
|||
![]()
hello again,
will you have a script so that every time the link grabber is activated it performs a deep analysis every time I copy a link? thanks. |
#2564
|
||||
|
||||
![]()
A script for this is not needed!
Are you sure you really want this? Do this on your own risk! JDownloader will request/every(!) URL that you copy/add! It is also possible using a single LinkCrawler rule of type DEEPDECRYPT: Code:
[ { "enabled": true, "logging": false, "maxDecryptDepth": 1, "name": "Auto deepdecrypt everything", "pattern": ".*", "rule": "DEEPDECRYPT", "packageNamePattern": null, "passwordPattern": null, "deepPattern": null } ]
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA Last edited by pspzockerscene; 24.02.2023 at 18:08. Reason: Fixed typo risk = CPU, risc = risc :D |
#2565
|
|||
|
|||
![]() Quote:
|
#2566
|
|||
|
|||
![]()
Script for a short pause between downloads.
Problem; Issue with files downloading with the same created time. |
#2567
|
|||
|
|||
![]()
I'm trying to use the filename that the webserver suggests (which probably happens via the Content-Disposition header). I try the following script (with "Packagizer Hook" trigger), but I get "null" in the responseHeader:
Code:
var myBrowser = getBrowser(); var responseHeader = myBrowser.getResponseHeader(link.getURL()); Last edited by SMS; 25.02.2023 at 18:46. |
#2568
|
|||
|
|||
![]() Quote:
So the script isn't working/doing anything. I put all the accounts in a text file with each account and password as well as the hoster on a separate line and the script does noting, tells me nothing and I tried it on a text file with a single account and it didn't import it. this is how they are formatted according to your instructions mega.nz ********@******************.com *************** I copied your code exactly the only thing I changed was the path to the text file. other than that, I don't know what I could be doing wrong. could you please help? |
#2569
|
|||
|
|||
![]()
Hi,
don't know if this is the right place for this request....if not please forgive me. Sometimes there are many .rev files in a package. It would be great if it were possible to move the .rev files into another package (perhaps with the same name as the original package plus the word 'REV') and starting them as 'disabled'. This way you can decide to download the .rev files at the end, only if necessary. Hope that someone could help...thanks anyway! |
#2570
|
||||
|
||||
![]()
A Packagizer rule could already be enough to do that.
Conditions would be something like "if filename contains .rev" -> Set packagename -> "REV-Package".
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2571
|
|||
|
|||
![]() Quote:
|
#2572
|
|||
|
|||
![]()
Hello,
i want JDownloader to call a Filbot-Node Task / Script over the Event scripter. The only way I found to do this, is over the “eventTrigger : ON_ARCHIVE_EXTRACTED” option. This in principle works, but unfortunately it calls the Filebot-Node Task / Script obviously after each extraction. Is there an easy way to call a Filbot-Node Task / Script only once, when all downloads in JDownloader are finished extracted? Thanks in advance! (I’m running JDownloader headless on a Synology NAS) |
#2573
|
|||
|
|||
![]() Quote:
Thanks no need to answer this now as I have worked out for myself Last edited by perspicacia; 05.03.2023 at 00:59. Reason: Worked out the solution myself |
#2574
|
|||
|
|||
![]() Quote:
Oh...I'm really stupid! ![]() Thanks for help!....anyway, I'm still missing one thing: I just want all the .rev files in one (new) folder; ![]() |
#2575
|
|||
|
|||
![]()
This is my "Package Finished" script.
It will run when I downloaded a YT Video to a specific directory. The downloaded video will then be moved to a remote host by calling a shell script. Should the moving fail, and so the video still be there, I pop up an alert and want to set the comment accordingly. Unfortunately neither setting the comment on the package nor on the link does have any effect. Can someone please guide me here? Code:
// move YT Video to target // Trigger Required: "Package Finished" // Forum Post used as basis: https://board.jdownloader.org/showpost.php?p=386822&postcount=18 package.setComment("copying..."); var links = package.getDownloadLinks(); var failure = 0; for (i = 0; i < links.length; i++) { var link = links[i]; var file = link.getDownloadPath(); var pos = file.indexOf('/jdyt/'); if (pos >= 0) { callSync('/Users/skeeve/bin/jdyt2target.bash', file.substr(0,pos+6), file.substr(pos+6)); var myFilePath = getPath(file); if (myFilePath.exists()) { ++failure; alert(comment); var comment = "Couldn't copy " + file.substr(pos+6); link.setComment(comment); package.setComment(comment); } else { link.setComment("ok"); } } } if (failure == 0) package.setComment("ok"); Last edited by Skeeve; 09.03.2023 at 21:12. |
#2576
|
||||
|
||||
![]()
So then simply use the "...then set" ... "Download Directory"...
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2577
|
|||
|
|||
![]()
Hey there!
I am looking for a way to get the very ordinary "Start Downloads"-Entry into the Context-Menu. Unfortunately I could not find it in the list of possible items to add. ... So I guess the only way would be an event-script. Can someone help me with the code for this, please? This would be very appreciated. |
#2578
|
|||
|
|||
![]() Quote:
|
#2579
|
|||
|
|||
![]() Quote:
But I had done all those steps already. All I needed was the java command for starting the downloads. Because it is NOT in the list of possible items to add to the context menu. (To the toolbar yes, but not to the context menu). But since this must be so ridiculously easy, your post gave me the idea to search this thread for "Start downloads" ... and indeed: The command popped up: HTML Code:
startDownloads(); It's working now! Thanks again! |
#2580
|
|||
|
|||
![]()
I would like to have the "Force Dowload"-function from the context menu as a toolbar button.
Can someone help me with the script code for this, please? |
![]() |
Thread Tools | |
Display Modes | |
|
|