#1421
|
|||
|
|||
![]() Quote:
I have set this in MyJDownloader EventScripter: Scripts: Code:
[ { "eventTrigger" : "ON_ARCHIVE_EXTRACTED", "enabled" : true, "name" : "Synology Videoordner nach entpacken indizieren", "script" : "disablePermissionChecks();\n\nif (isDownloadControllerIdle() && !callAPI(\"extraction\", \"getQueue\").length) callSync(\"synoindex\", \"-R\", \"video\");", "eventTriggerSettings" : { "isSynchronous" : false }, "id" : anonymus } ] |
#1422
|
|||
|
|||
![]() Quote:
If you are still having problem with the script, you can find me in JD Chat.: Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader |
#1423
|
|||||
|
|||||
![]() Quote:
Quote:
Quote:
Quote:
![]() Quote:
__________________
Aktuelles Windows Last edited by Dockel; 20.06.2020 at 16:54. |
#1424
|
||||
|
||||
![]()
@Dockel
not youtube website, JD > settings > plugins > youtube
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#1425
|
|||
|
|||
![]()
So change the settings there. Very many settings. And when I want other variants of videos (than 480p) I would have to reset the settings each time.
__________________
Aktuelles Windows |
#1426
|
|||
|
|||
![]() Quote:
|
#1427
|
|||
|
|||
![]()
Thank you for checking.
Quote:
![]() Where could I find it?
__________________
Aktuelles Windows Last edited by Dockel; 22.06.2020 at 22:26. |
#1428
|
|||
|
|||
![]() |
#1429
|
|||
|
|||
![]()
Yes, but here it is not:
![]() And I even cannot find it in the menu cusstomizer / offline menu manager or so. I do not have any idea how to add it. I assume, a long time ago I removed it, but I cannot remember it.
__________________
Aktuelles Windows |
#1430
|
|||
|
|||
![]()
Menu Item Name: Plugin Menu Entries (Component)
|
#1431
|
|||
|
|||
![]()
Sorry, what do I have to do with it:
![]()
__________________
Aktuelles Windows |
#1432
|
|||
|
|||
![]()
Click "Add". Any entries available for a plugin which is used for the particular link, will then appear in the context menu.
|
#1433
|
|||
|
|||
![]()
Ah yes, now it is available.
![]() And here I can select the resolutions: ![]() Thank you very much!
__________________
Aktuelles Windows |
#1434
|
|||
|
|||
![]()
Hello,
I'm trying to use the Event Scripter to prune incoming link packages from a specified domain, leaving only the largest file, while discarding the rest. But I can't for the life of me find any documentation that clearly describes when and where each Trigger is triggered. For example, when is Package Finished triggered? Or Package Hook? Apologies for being completely clueless, much appreciation for anyone willing to point me in a direction. Thanks |
#1435
|
|||
|
|||
![]()
Neither of them are suitable for your use case. There aren't any event triggers which will work out of the box (in this case) either. You will have to use "A new link was added" trigger, and use the 'packagizer link' object returned by it to get the relevant 'crawled link' objects, and query/match/remove them from list. |
#1436
|
|||
|
|||
![]() Quote:
myArchive.getExtractedFilePaths() gives path from extracted file. But I need full path and name of archive/archive parts from manual open beacause I want move archive after extract. Last edited by sherbee; 27.06.2020 at 18:55. |
#1437
|
|||
|
|||
![]() Quote:
Code:
var filePaths = archive.getExtractionLog().match(/\(FileArchiveFile\)File:[^|]+/g).map(function(filePath) { return filePath.replace(/.+?:(.+)/, "$1"); }); alert(filePaths.join("\n")); |
#1438
|
|||
|
|||
![]()
I'm looking for a script that I can run periodically that will reset a link if status = Finished and size = 0 bytes. Basically resetting anything that looks like this. I spoke more about this issue here.
https://board.jdownloader.org/showthread.php?t=84716 If anyone could help me make this script I would be very grateful. |
#1439
|
|||
|
|||
![]() Quote:
Code:
// Reset finished link, if size is zero bytes // Trigger: A Download Stopped if (link.finished && !link.bytesTotal) { link.reset(); } |
#1440
|
|||
|
|||
![]()
As it took me a few hours to get it done im posting my code for anyone who wants to send a finished download to a remote machine via scp.
This is a follow-up post of my last post in Dec '19. OS: Linux with public key auth on remote server Code:
disablePermissionChecks(); if (link.isFinished()) { var sourceFile = link.getDownloadPath(); var result = callSync("scp", "-P <portnr>", sourceFile, "<user>@<IP_of_destination>:/<filepath>"); var exitcode = callSync("sh", "-c", "echo $?").trim(); log("scp-output: " + result); log("Exit Code: " + exitcode); if (exitcode == "0") { deleteFile(sourceFile, false); //false=non-recursive log("DELETED " + link.getName()); } if (package.isFinished()) package.remove(); } Code:
callSync("sh", "-c", "scp -P <portnr> " + sourceFile + " <user>@<IP_of_destination>:/<filepath> && rm " + sourceFile); |
![]() |
Thread Tools | |
Display Modes | |
|
|