#421
|
|||
|
|||
![]() Quote:
Quote:
|
#422
|
|||
|
|||
![]() Quote:
Maybe I could better explain my request: I'm not talking only for "search folder and subfolder and skip to download existing files", the general idea was to avoid to donwload duplicates, each method is ok (I said about "search in the folder" because if JD skip downloads by using an "internal memory" of links downloaded, a format of windows could totally unable the skill). However: the general idea is for moving downloaded files. This can be done out from the donwload folder, or can be done in a subfolder if easier to do. Did you said there is a way, no care which one, to do something like this, or you said there is no way? Thanks, sorry for my missunderstanding |
#423
|
|||
|
|||
![]() Quote:
Ok ![]() Thanks! |
#424
|
|||
|
|||
![]() Quote:
|
#425
|
|||
|
|||
![]()
If you just want to know if it is possible. Yes it is possible. But if you are asking me if I can add it to this script. Sorry I will have to decline.
|
#426
|
|||
|
|||
![]() Quote:
![]() how stupid I am, I had not read that, in the script, there is specified to set "Interval" as Target :( I think that's the problem, I try it tonight and I'll let you know ![]() Last edited by FlyAway; 17.04.2018 at 08:15. |
#427
|
|||
|
|||
![]() Quote:
Code:
var h = new Date().getHours(); if (h < 6 || h > 20) return; In this example the script will run only between 6 AM and 9 PM. |
#428
|
|||
|
|||
![]() Quote:
thanks for the help but 6 or 7 hours of reconnections I think disinterrupt the router ![]() Unfortunately I tried your script having enabled the trigger but it does not work, does not reconnect :( |
#429
|
||||
|
||||
![]()
@FlyAway: you should modify script to test it first if reconnect works at all
Does Reconnect work for you? did you setup it first?
__________________
JD-Dev & Server-Admin |
#430
|
|||
|
|||
![]()
I do not think I understood. The reconnect function works correctly, it does not work when it is invoked by the script
|
#431
|
||||
|
||||
![]()
did you enable Settings-Reconnect -> Reconnects can interrupt resumable downloads?
Not resumeable downloads will block the reconnect. you would need to modify script to stop running downloads first
__________________
JD-Dev & Server-Admin |
#432
|
|||
|
|||
![]() Quote:
I have deleted all list of file in queue, restart JD2 and seem to be working. This night I test it. Any idea for limit of number of reconnection? Last edited by FlyAway; 17.04.2018 at 12:48. |
#433
|
||||
|
||||
![]()
You can modify script to check global map of reconnects done and add an additional script that always increases when reconnect is started 'Before A Reconnect' and 'After A Reconnect'. Better ask mgpai for help with this
__________________
JD-Dev & Server-Admin |
#434
|
|||
|
|||
![]() Quote:
![]() |
#435
|
|||
|
|||
![]() Quote:
I hope that, in the future, someone can run this script because you can assign a number of executions of your choice, it could be useful in many cases |
#436
|
||||
|
||||
![]()
@FlyAway: what exactly do you need this *number of executions* ?
__________________
JD-Dev & Server-Admin |
#437
|
|||
|
|||
![]()
I have to limit the number of reconnections because I leave the router on at night and, using the mgpai scipt, is likely to burn if it continues to reconnect for many hours
|
#438
|
||||
|
||||
![]()
you can easily modify to check last reconnect timestamp in your script
for example store timestamp last time you requested reconnect and only allow script when last reconnect is more than x mins/hours ago. should be easy to modify for mgpai ![]()
__________________
JD-Dev & Server-Admin |
#439
|
|||
|
|||
![]()
sorry I was not clear. Can you read my previous posts? There I explained well what the problem is. I think your solution is not good
Last edited by FlyAway; 18.04.2018 at 18:50. |
#440
|
||||
|
||||
![]()
@FlyAway: Limiting the execution is about the same result as only allowing for example 2 reconnects per hour. Because with limited executions, you have to reset it manually while my solution just prevents endless/too many reconnects. You could easily mix time check and time interval check. For example between 22:00 and 06:00 only allow 2 reconnects per hours
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|