#2061
|
||||
|
||||
![]()
@maxpower420: Both is possible but better wait for mpgai to return here to help you with this. He's our script master and will be able to answer correct/working script faster than me.
__________________
JD-Dev & Server-Admin |
#2062
|
|||
|
|||
![]() Quote:
Code:
/* Restart links Trigger : Interval (60000+) */ var exclude = ["zippyshare.com"]; getRunningDownloadLinks().forEach(function(link) { if ( exclude.indexOf(link.host) == -1 && link.downloadDuration > 60000 && link.speed < 1024 * 128 && link.bytesLoaded / link.bytesTotal < 0.5 ) { link.abort(); } }) |
#2063
|
||||
|
||||
![]()
@mgpai: nice and easy solution. always thank you for your great work and all the time you spend helping ppl and on scripts
![]()
__________________
JD-Dev & Server-Admin |
#2064
|
|||
|
|||
![]()
Thanks Mgpai,
Figured would be not to much to it and is even shorter and simpler than i though it would be. something that prob took all of 5 minutes for you, but would have been hours for my self to figure it out thru trial and error and probably still would be lost. only had to change one thing which was abort to reset since abort just connects it back to the same slow CDN node. Maybe if there is a way to pause it or skip to the next file to download so it comes back to that file after a few minutes, as i know if i completely exit and start back up jdownloader then it will hit a different CDN node and continue where it left off on the download. where as that miliseconds that it just stops and restarts it on abort, it always connects back to the same slow CDN node. but is good enough for me !! Thanks Again |
#2065
|
||||
|
||||
![]()
@maxpower420: what host is the link from? most likely JDownloader will try to reuse existing cached link and that works in time x but will fail after time y.
__________________
JD-Dev & Server-Admin |
#2066
|
|||
|
|||
![]() Quote:
Code:
/* Skip/Unskip link Trigger : Interval Recommended Interval : 60000+ */ var exclude = ["zippyshare.com"]; var skipped = []; getRunningDownloadLinks().forEach(function(link) { if ( exclude.indexOf(link.host) == -1 && link.downloadDuration > 60000 && link.speed < 1024 * 128 ) { link.skipped = true; skipped.push(link); } }) sleep(1000); skipped.forEach(function(link) { link.skipped = false; }) |
#2067
|
|||
|
|||
![]()
Hello,
i would like to use auto reconnect function only in the specific time frame (or not use it in a specific time frame) because i dont want auto reconnect during working time. Please can you help me to do this step by step please? (i'm not a programmer) Thank you |
#2068
|
|||
|
|||
![]() Quote:
Code:
Settings > Extension Modules > Scheduler |
#2069
|
|||
|
|||
![]()
Thank you, i check it, but i dont understand how to use it.
Which event? Interval? Where can i set this interval? And which script i have to put it? Thanks so much Best regards and happy new year |
#2070
|
|||
|
|||
![]() Quote:
![]() Now for my other question: I have a script that adds downloads to the LinkGrabber, but every time it runs a new package is created instead of adding to the existing ones. Is there an EventScripter script that can merge packages that have the same name into one? Is that possible to do? If it is, I can try to put it together, but as of right now I know nothing about what the EventScripter can and cannot do... Thanks! |
#2071
|
||||
|
||||
![]()
@farna1000: In Scheduler extension you add events and tell JDownloader when to do what, eg disable auto reconect daily at x o'clock, and another event enable auto reconnect daily at y o'clock.
@MLi: how do you add the links? what method? clipboard? crawljob files? api? do you want a custom package name or the auto generated and just want them to be merged?
__________________
JD-Dev & Server-Admin |
#2072
|
|||
|
|||
![]() Quote:
So I would like to just go through the package list and merge the ones that have the same name, as I know they will have everything else the same. Is this a use case for the EventScripter? Is there any command list or documentation for it? Anything somewhat similar that I could base it on? Thanks! MLi |
#2073
|
||||
|
||||
![]()
@MLi: Thanks for the feedback! So you need a feature that when name AND download directory of the package are the same, then the links from linkgrabber will be placed into existing package with same name AND download directory, right? if no such package is found, then create new one?
Would it be okay if this feature is enabled/disabled globally?
__________________
JD-Dev & Server-Admin |
#2074
|
|||
|
|||
![]() Quote:
And having it globally would be fine. In my case I don't automatically add the links to the downloads (sometimes I need to do some filtering before starting them, and the painful part is adding all the links, so that's what I automated), so having it as an option for Start Downloads would also work for me, but either one is fine. Thanks a lot for all your work on JD, I don't know what I would have done the last couple years without it! ![]() MLi |
#2075
|
||||
|
||||
![]()
@MLi: Thanks for the confirmation about this feature wish. I think this can be done (globally). I will try to work on this as soon as I find time
__________________
JD-Dev & Server-Admin |
#2076
|
|||
|
|||
![]()
How to check if my mega downloads get a "509 bandwith limit exceeded"?
I plan to manually reconnect and restart jd when this happens. |
#2077
|
||||
|
||||
![]()
@restland
I wouldn't do this. Your issue is somewhere else and you should properly fix it, see my answer in your other thread. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2078
|
|||
|
|||
![]()
Hallo vielleicht kann mir jemand helfen.
ich suche ein Script das die Downloads die den Status "Plugin veraltet" , "Plugin defekt" oder "server error" haben, nach einer zeit von 5 min automatisch auf "start erzwingen" macht. Ich habe ein ähnliches Script hier gefunden das die links zurück setzt. Ich finde aber den command nicht für "Start erzwingen". // Reset links on Plugin Defect // Trigger Required: Interval // CAUTION: Resetting links will discard any data which has already been downloaded var newInterval = 300000; // Interval between checks (in milliseconds) if (interval == newInterval) { var links = getAllDownloadLinks(); for (i = 0; i < links.length; i++) { var link = links[i]; if (link.getFinalLinkStatus() == "PLUGIN_DEFECT") link.reset(); startDownloads(); } } else { interval = newInterval; } vielen dank |
#2079
|
|||
|
|||
![]()
Hallo,
ich würde sagen laut LOG heißt es nun: "ERROR_PLUGIN_DEFECT" D.h. der Code müsste schon einmal so aussehen: // Reset links on Plugin Defect // Trigger Required: Interval // CAUTION: Resetting links will discard any data which has already been downloaded var newInterval = 10000; // Interval between checks (in milliseconds) if (interval == newInterval) { var links = getAllDownloadLinks(); for (i = 0; i < links.length; i++) { var link = links[i]; if (link.getFinalLinkStatus() == "ERROR_PLUGIN_DEFECT") link.reset(); startDownloads(); } } else { interval = newInterval; } |
#2080
|
|||
|
|||
![]()
Wenn ich den Code wie von mir einfüge und das Beispiel Script: "Spiele Ton ab, wenn Fertig" aktiviere- höre ich zwar alle 10-15 seks den Ton, aber der Download läuft nicht an...obwohl ich jetzt gerade den Zeitpunkt hatte, dass bei mir gerade wieder Freeslots zur Verfügung standen.
D.h. das Skript funktioniert noch nicht zu 100% |
![]() |
Thread Tools | |
Display Modes | |
|
|