#1681
|
|||
|
|||
![]() HTML Code:
// Skip slow links and resume them after wait time.
// Trigger Required: "Interval" (Recommended: 30000 or more).
// IMPORTANT: Enable "Synchronous execution of script" (checkbox).
var minSpeed = 628; // (KiB/s) <- minimum download speed per link.
var minDuration = 1; // (minutes) <- minimum download duration per link.
var waitTime = 5; // (minutes) <- wait time before restart
//alert(myPackagizerLink);
var links = getRunningDownloadLinks();
var skipped = [];
for (i = 0; i < links.length; i++) {
var link = links[i];
if (link.getDownloadDuration() < 20000) continue;
if (link.getSpeed() > minSpeed * 1024) continue;
link.setSkipped(true);
skipped.push(link.getUUID());
}
if (skipped.length > 0) {
sleep(10000);
resumeLinks();
}
//functions
function resumeLinks() {
forcestart(packednameS="Films","MyISO","mypackage2")
callAPI("downloadsV2", "resumeLinks", skipped, []);
while (isDownloadControllerStopping()) sleep(1000);
if (!isDownloadControllerRunning()) startDownloads();
}
forcestart(packedname="Films") code... etc... no all downloads start. only my package with named "Films" force start.. Last edited by drjs5x; 02.04.2021 at 12:29. |
#1682
|
|||
|
|||
![]()
yes 30 minutes force start my package named "Films "
i have got a package named "Films ". how can script a package with name force start with interval 30 minutes. forcestart(packedname="Films") code... etc... no all downloads start. only my package with name force start.. sory my bad english.. sincerely. Last edited by drjs5x; 31.03.2021 at 18:27. |
#1683
|
|||
|
|||
![]()
forcestart(packednameS="Films","MyISO","mypackage2") code... etc...
no all downloads start. only my packages with names force start.. how can code only my packages with names force start? |
#1684
|
|||
|
|||
![]()
Any particular reason the the downloads have to be force-started at such short intervals using a script?
If the downloads are failing to start or are not completed due to plugin issues it is better to ask the developers check/fix it rather than use workaround such as this. Else, the script will simply try to start the downloads in an endless loop if the downloads fails to really start. |
#1685
|
|||
|
|||
![]() Quote:
Sincerely. |
#1686
|
|||
|
|||
![]() Quote:
|
#1687
|
|||
|
|||
![]()
for slow download restart downloads... but only my packets..
my event project // Skip slow links and resume them after wait time. // Trigger Required: "Interval" (Recommended: 30000 or more). // IMPORTANT: Enable "Synchronous execution of script" (checkbox). var minSpeed = 628; // (KiB/s) <- minimum download speed per link. var minDuration = 1; // (minutes) <- minimum download duration per link. var waitTime = 5; // (minutes) <- wait time before restart //alert(myPackagizerLink); var links = getRunningDownloadLinks(); var skipped = []; for (i = 0; i < links.length; i++) { var link = links[i]; if (link.getDownloadDuration() < 20000) continue; if (link.getSpeed() > minSpeed * 1024) continue; link.setSkipped(true); skipped.push(link.getUUID()); } if (skipped.length > 0) { sleep(10000); resumeLinks(); } //functions function resumeLinks() { forcestart(packednameS="Films","MyISO","mypackage2") callAPI("downloadsV2", "resumeLinks", skipped, []); while (isDownloadControllerStopping()) sleep(1000); if (!isDownloadControllerRunning()) startDownloads(); } |
#1688
|
|||
|
|||
![]() Code:
/* Restart slow links Trigger : Interval */ var packages = ["Films", "MyISO", "mypackage2"]; var target = 128; // kbps getRunningDownloadLinks().forEach(function(link) { if ( packages.indexOf(link.package.name) > -1 && link.downloadDuration > 60000 && link.speed < target * 1024 ) { link.abort(); } }) |
#1689
|
|||
|
|||
![]()
Hi I'm trying to find away to configure the extractor to only extract files and ignore folder paths within the archive. I've been told one solution might be to use an event script to move all extracted files into the root folder (that the archive was extracted to).
I've tried to get this to work by playing around with the Extractor, Packagizer, and even Advanced Settings but can't seem to figure out a solution to what seems to be a straightforward issue. I want to automatically extract my rar archives to a <packagename> subfolder, but only extract the files themselves, and ignore the folder structure inside the rar. In the free version of WinRar there's a toggle setting called "Do not extract paths" that does exactly what I want. However I can't find the equivalent feature in JDownloader's .rar Extractor. Please let me know if there's a way to do this, and thanks in advance! |
#1690
|
|||
|
|||
![]()
Packagizer has an option to move files after extraction. You an use the <jd:packagename> placeholder in the "Move to" field.
|
#1691
|
|||
|
|||
![]()
Can you help me with a script? I want to extract the links from:
**External links are only visible to Support Staff**... but do not know how. Can you help with this? Thanks! @mgpai: https://board.jdownloader.org/showpo...7&postcount=41 Last edited by Jiaz; 16.04.2021 at 16:59. Reason: added link |
#1692
|
|||
|
|||
![]()
Seeing that the final links/file ids are generated only on click, I am not sure it is possible to extract them with just an eventescripter script.
|
#1693
|
|||
|
|||
![]()
according to :https://board.jdownloader.org/showth...707#post482707
Jiaz's Avatar Jiaz Jiaz is offline JD Manager Join Date: Mar 2009 Location: Germany Posts: 69,660 Default @eagleg: I'm sorry but there are no links you can copy to clipboard, as they are handled on leftclick via javascript Should be possible with little script for Eventscripter, see https://board.jdownloader.org/showthread.php?t=70525 that listens to "new crawl job" and then loads website, parses the file ids and fetches every link. maybe mgpai can help you with such a script, ask in that thread __________________ JD-Dev & Server-Admin |
#1694
|
||||
|
||||
![]()
Should be possible, you can parse the ids and just need a post to the url ad response contains json with final url
__________________
JD-Dev & Server-Admin |
#1695
|
|||
|
|||
![]()
ive never done this before, can you help?
|
#1696
|
|||
|
|||
![]()
Example?
|
#1697
|
||||
|
||||
![]()
@mgpai: contact me by mail
__________________
JD-Dev & Server-Admin |
#1698
|
|||
|
|||
![]()
Hello there,
Can you make an event to create info-file with package download links when download start if it's not available and not wait until it finishes The already available "Create an Info-File in the Download-Folder with detailed information" only creates it when download finishes and doesn't work all the time even after modifying the line var iContent = 0; //setting bit 1 if (bWriteFile == true && iContent > 0) { //comment out or set "iContent >= 0" if info-file should be written always Thanks |
#1699
|
|||
|
|||
![]()
Most of the information written by the script is available only after the package is finished and not when it is started. It is better to create a new script which writes only the information which is available when the package is started.
|
#1700
|
|||
|
|||
![]() Quote:
Is there a way to use a palceholder for that directory path? Whatever the input is when the user is pasting links in the linkgrabber? |
![]() |
Thread Tools | |
Display Modes | |
|
|