#281
|
|||
|
|||
![]()
hello,
i usually download with 50mbi/s but sometimes it goes down to 1000kb/s so i have to pause and resume the download.. is it possible to make a script for that , that it will every 30 seconds pause/resume the download? |
#282
|
|||
|
|||
![]() Quote:
|
#283
|
||||
|
||||
![]()
@Hartm: what exactly doesnt work? there have been no changes to JDownloader and script.
__________________
JD-Dev & Server-Admin |
#284
|
|||
|
|||
![]()
Thanks Jiaz, the packagizer solved my problem. ;-)
|
#285
|
||||
|
||||
![]()
@hartm
Try this script Trigger is Interval with 10000ms Code:
//überprüfen, ob überhaupt gedownloadet wird if (isDownloadControllerRunning() && !isDownloadControllerStopping()) { var running = getRunningDownloadLinks(); //alle laufenden Downloads überprüfen for (var i = 0; i < running.length; i++) { //überprüfen, ob der Download mindestens seit 30 Sekunden läuft if (running[i].getDownloadDuration() > 20000) { //überprüfen, ob die Geschwindigkeit unter 500kb/s ist (habe 100.000er - dementsprechend an die eigene Leitung anpassen!) if (running[i].getSpeed() < 1000 * 1024) { //Reconnecten! requestReconnect(); } } } } |
#286
|
|||
|
|||
![]() Quote:
in event scripter i enabled the script due download start is that wrong? Last edited by Hartm; 07.02.2018 at 08:23. |
#287
|
||||
|
||||
![]()
@Hartm: Trigger must be set to 'Interval' mit 1000 ms interval.
__________________
JD-Dev & Server-Admin |
#288
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Hartm.js Last edited by mgpai; 09.02.2018 at 05:11. Reason: Updated script location |
#289
|
|||
|
|||
![]()
I was directed here by Jiaz from my feature request thread, so here's a copy-paste of what I'm looking to do:
----- Here's an example to illustrate what I'm looking for. Say I have 500 or so links in the LinkGrabber or Downloads list. However I already have 200 of those files downloaded previously. Now it's pointless and a sheer waste of time, power, bandwidth etc. to re-download those 200 files, and it's obviously not feasible to manually look through the 500 and remove the 200. Now suppose I have a simple text file containing a list of all the files I already have (could be in any location and on any internal or external media, but the list contains only file names and not paths). What I want is a Subtract File List feature where I can provide the file list to JD, and it will automatically mark (say with red or yellow background) all the links that match the names of files I already have. There should also be a new menu option (along with Delete Links: disabled/failed/finished/offline) i.e. Delete Links: duplicates, so that one can quickly and easily get rid of all the matching links after reviewing them. The matching links can of course be directly removed from the LinkGrabber or Downloads list too, but highlighting them with a different color will enable users to review which ones they really want to delete. For example a link may exactly match the name of a pre-existing file, but the user may decide to download anyway because the files are different. ----- So, is this something that can be scripted? |
#290
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/netgearjd.js Last edited by mgpai; 09.02.2018 at 05:10. Reason: Updated script location |
#291
|
||||
|
||||
![]()
@mgpai: thanks for your help and support!
__________________
JD-Dev & Server-Admin |
#292
|
|||
|
|||
![]() Quote:
but i dont think it is working? my download goes 65 seconds with 885kbi/s and it doenst reconnect... |
#293
|
|||
|
|||
![]()
@Jiaz: Always my pleasure
![]() Quote:
Quote:
If that is still what you are looking for, please make sure you have selected 'interval' as trigger and set it to '60000'. For testing purposes you can set a very high target speed (e.g. 1024000) and see if the script is being triggered. You can visually confirm it by watching the pause button in GUI. If the script is working correctly, you should be able to see it being disabled/enabled for the duration specified in the script. Note: The script has bee moved to: Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Hartm.js |
#294
|
||||
|
||||
![]()
Hi,
i'm searching a script for automatic update. the last one i got is not working. |
#295
|
|||
|
|||
![]()
Restart and update when Idle? Which script did you try?
|
#296
|
||||
|
||||
![]()
i got one that was checking every 8 hours if there is an update or not. when theres was one, JD ask everytime time if it is ok to update. i need one that is not asking.
|
#297
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/DaDealer.js We can also check/modify your existing script, if you post it here. If you have a different solution in mind, feel free to suggest it. |
#298
|
||||
|
||||
![]()
the script was:
Code:
// Check if updates are availaible when JD is idle if (callAPI("update", "isUpdateAvailable") && isDownloadControllerIdle()) { // Restart JD and Update callAPI("update", "restartAndUpdate") } |
#299
|
|||
|
|||
![]() Quote:
yes sorry it works.. i didnt see that because i mean something different.. i mean stop and go... i have to completely stop the download and then start it again to regain fullspeed.... do i have to change setDownloadsPaused to setDownloadsStart ? |
#300
|
|||
|
|||
![]() Quote:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Hartm_2.js |
![]() |
Thread Tools | |
Display Modes | |
|
|