#461
|
||||
|
||||
![]()
@mgpai: the new method is available. you can rewrite the script to use it
__________________
JD-Dev & Server-Admin |
#462
|
|||
|
|||
![]()
I couldn't find anything in the list. I also tried link.getDownloadHost() just now and got:
Code:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function getDownloadHost in object DownloadLink Instance: sample.txt. (#3) |
#463
|
||||
|
||||
![]()
Will be added with next full build in about 10 mins
__________________
JD-Dev & Server-Admin |
#464
|
|||
|
|||
![]()
I am looking for an opportunity to send an email whenever JD has finished a download or extraction task and I was told, that this could possibly be solved with the help of the event scripter and of course with the help of mgpai ;-)
JD is running on my Synology NAS and as the NAS itself is able to send mails, maybe there is also a way to persuade JD to do so as well. Unfortunately I have absolutely no knowledge of scripting and/or Linux, so any help will be appreciated. |
#465
|
|||
|
|||
![]()
It is possible to use external programs in script to send emails from JD. Unfortunately I have no experience with Linux/NAS. If you know (or can find out) the command which is used to send messages via terminal, I might be able to help you with the script. Else, a third-party program can be used in the script to send the emails.
|
#466
|
||||
|
||||
![]()
@mgpai: see mkleine.de/blog/2016/01/07/synology-sendmail-per-shell-aktivieren/ for commandline
__________________
JD-Dev & Server-Admin |
#467
|
|||
|
|||
![]() Quote:
I can always provide a solution using (free) 3rd party software which can also be used in Linux. |
#468
|
||||
|
||||
![]()
no need to test yourself, in the end it's a script that calls local sendmail command with parameters
you can fake sendmail with a simple batch or anything
__________________
JD-Dev & Server-Admin |
#469
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/desperado591.js github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/desperado591_2.js |
#470
|
|||
|
|||
![]()
Ups, I didn´t receive an email notification about your answer, so I just discovered it a moment ago...
Thank you very much for this 2 scripts :-) Now I will need the help of Jiaz to get it running *gg* I will ask him in the German forum, as my English isn´t good enough. |
#471
|
|||
|
|||
![]()
Don't know if something like this has been asked for already, I didn't find quite what I need. But it'd be nice if the script-gods would take a look, perhaps.
![]() I need a script that, when a download is finished, extracts the files, deletes the archives and then moves the extracted files to another location. Background on this: I want the download and (especially) the extracting to happen on an SSD, because it's much faster, but the files ultimately stored on a HDD...because size, obviously. |
#472
|
|||
|
|||
![]() Quote:
Quote:
|
#473
|
|||
|
|||
![]()
I want to run utorrent after jdownloader has finished downloading. I have it configured so it quits after everything is done (shutdown extension).
I downloaded event scripter but it's very confusing. I just want jdownloader to run "C:\Programs\P2P\uTorrent\utorrent.exe" just before it quits. Thank you! |
#474
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/44nonymous.js |
#475
|
|||
|
|||
![]() Quote:
You have to use double slashes, inverted "C:\\...\\...\\utorrent.exe" Thanks! |
#476
|
|||
|
|||
![]() Quote:
Valid formats: Code:
callAsync(null, "C:/Programs/P2P/uTorrent/utorrent.exe"); callAsync(null, "C:\\Programs\\P2P\\uTorrent\\utorrent.exe"); Invalid format: Code:
callAsync(null, "C:\Programs\P2P\uTorrent\utorrent.exe"); |
#477
|
||||
|
||||
![]()
Hallo, ich hab mal eine Frage. Bisher habe ich JDownloader 2 auf meinem PC genutzt und dort mit dem Script HIER aus dem ersten Beitrag meine Youtube-Audiofiles erfolgreich in MP3 umgewandelt. Nachdem ich aber jetzt ein Synology NAS habe und JD2 dort installiert habe, bekomme ich das Script da nicht eingefügt. Muss ich dort was besonderes beachten?
__________________
http://img150.imageshack.us/img150/9...ghts1960x1.jpg
**External links are only visible to Support Staff**NICHT KLICKEN!!!!!! |
#478
|
||||
|
||||
![]()
Einfach den Wert der Einstellungen-Profieinstellungen-EventScripter.scripts via Copy/Paste von einem JDownloader auf den anderen *rüberkopieren*
__________________
JD-Dev & Server-Admin |
#479
|
|||
|
|||
![]() Code:
// Backup link lists at startup // Trigger: JDownloader started // Backup files will be stored in JD default download folder ["downloadList", "linkcollector"].forEach(function(listType) { var linkList = getPath(JD_HOME + "/cfg/").getChildren().filter(function(file) { return new RegExp(listType + ".+zip$").test(file); }).reverse()[0]; if (!linkList) return; var linkListTime = new Date(linkList.getModifiedDate()).toString().substring(4, 21).replace(/:/g, ""); var backupFolder = callAPI("config", "get", "org.jdownloader.settings.GeneralSettings", null, "defaultdownloadfolder") + "/linkLists/"; var backupFile = linkListTime + " " + listType + ".zip"; linkList.copyTo(backupFolder, backupFile, false); }); |
#480
|
|||
|
|||
![]()
Hello,
I haven't seen anything like it, but can a script change the download variant once a link is added to the link grabber? For example, if a Youtube link is added, can a script automatically pick the MP4 or MKV variant (where both available) based on which of the 2 is smaller in size? Thanks, Billy |
![]() |
Thread Tools | |
Display Modes | |
|
|