#181
|
||||
|
||||
![]()
@or3n: you know the script only works for packages, not individual links?
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 08.09.2017 at 19:32. |
#182
|
|||
|
|||
![]()
The script is working fine. For which site do you use the script? Does that plugin still write the description to the comments field?
|
#183
|
|||
|
|||
![]() Quote:
Quote:
so if the comments doesn't appear in JDownloader "comments" column it's a plugin issue? ![]() |
#184
|
||||
|
||||
![]()
@0r3n: wait for plugin update. comment handling was broken because of instagram site changes
__________________
JD-Dev & Server-Admin |
#185
|
|||
|
|||
![]()
hi
sorry to disturb you for that but the mgpai script for sorting files by duration (https://board.jdownloader.org/showpo...&postcount=159) cant be started for every "files" but only "bundle" we dont have "file finished" trigger in "event scripter" is it possible to fix that by something more inside the script or a new trigger ps : if i select "interval" i have an error (https://i.imgur.com/jzou6a2.png) thx in advance |
#186
|
||||
|
||||
![]()
You have to use the trigger "Download Stopped" as commented in the script
__________________
JD-Dev & Server-Admin |
#187
|
|||
|
|||
![]()
ho my bad sry thank you im gonna try this
|
#188
|
|||
|
|||
![]() Quote:
![]() |
#189
|
||||
|
||||
![]()
@03rn: you're welcome
![]()
__________________
JD-Dev & Server-Admin |
#190
|
|||
|
|||
![]()
good morning,
will it work for me? (deleted files in download folder) Code:
// Delete from download folder, any file/folder which contains user specified keywords // Trigger required: "A Download Stopped" package.getDownloadFolder().forEach(function(file) { var re = /.*(ajax-loader|url).*/; var junkFile = re.test(file.getName()); var junkFolder = re.test(file.getParent().getName()); if (junkFile) file.delete(); if (junkFolder) file.getParent().deleteRecursive(); }); I want the download to be finished, check if there is a pdf file, if so, this is started F:\Downloads\files\PDFConverter.exe "%DEPACKFOLDER%" "%DEPACKFOLDER%" -c PNG -p 1 -pd 4x5 "%DEPACKFOLDER%" = DownloadFolder is that possible? Last edited by Informativ; 17.09.2017 at 11:00. Reason: edit |
#191
|
|||
|
|||
![]() Quote:
If you always want to delete such files, it is better to use linkfilter and prevent the links from being added to JD in the first place, rather than downloading, and deleting them later using event scripter. Quote:
Code:
// Run external program if package contains 'pdf' file // Trigger: "Package finished" var pdf = package.getDownloadLinks().some(function(link) { return getPath(link.getDownloadPath()).getExtension() == "pdf"; }); if (pdf) { var downloadFolder = package.getDownloadFolder(); var converter = "f:/downloads/files/pdfConverter.exe"; callAsync(function() {}, converter, downloadFolder, downloadFolder, "-c", "PNG", "-p", "1", "-pd", "4x5"); } |
#192
|
|||
|
|||
![]()
hi mgpai,
if no pdf available, that comes
Spoiler:
Quote:
![]() |
#193
|
||||
|
||||
![]()
looks like copy/paste error or invalid script. error is about syntax error in script
__________________
JD-Dev & Server-Admin |
#194
|
|||
|
|||
![]()
hi,
is it possible to stop this part and then restart it?
Spoiler:
|
#195
|
|||
|
|||
![]()
Hi.
Textbox contents in messagebox is invisible height. How change height? Code:
alert("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); ![]() Last edited by pachi; 08.10.2017 at 05:47. |
#196
|
|||
|
|||
![]() Quote:
Code:
alert("myString"+"\r\n"); |
#197
|
|||
|
|||
![]()
Thank you!
|
#198
|
||||
|
||||
![]()
__________________
JD-Dev & Server-Admin |
#199
|
|||
|
|||
![]() Quote:
says ReferenceError: "linkcheckDone" is not defined. (#28) |
#200
|
||||
|
||||
![]()
It works here on last JD 2.0 #617. So nothing to fix.
|
![]() |
Thread Tools | |
Display Modes | |
|
|