#1
|
||||
|
||||
UPDATE SCRIPT does not work
The JD Update SCRIPT is no longer working. (#CORE 44633)
Please fix it. TX ___________________________________________________________ /* Update when JD is Idle Trigger Required: "Interval" (Recommended: 600000 (10 mins.) or more) */ if ( callAPI("update", "isUpdateAvailable") && !callAPI("linkcrawler", "isCrawling") && !callAPI("linkgrabberv2", "isCollecting") && !callAPI("extraction", "getQueue").length && isDownloadControllerIdle() ) { callAPI("update", "restartAndUpdate"); } |
#2
|
||||
|
||||
what exactly doesn't work? just tested and working fine
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
@guardao: Seems to be working fine (same core revision). Are you getting any errors?
P.S.: @Jiaz was faster. |
#4
|
||||
|
||||
Quote:
Thanks guys. Last edited by guardao; 08.07.2021 at 17:27. |
#5
|
||||
|
||||
I'm using this for over 1,5 years now and never had to update my headless JD manually once
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#6
|
||||
|
||||
Quote:
After the JD START I was asked to update. 15.07.21 15.35.40 <--> 15.07.21 15.43.14 jdlog://1094825302851/ Last edited by guardao; 15.07.2021 at 16:52. |
#7
|
||||
|
||||
@guardao: the script runs every 10 mins. Updates are downloaded in background and this script will only be triggered if JDownloader has the update ready to install and no downlods/nothing crawling/nothing extracting and in idle
__________________
JD-Dev & Server-Admin |
#8
|
||||
|
||||
UPATE SCRIPT - Improvement
Quote:
Perhaps the script can handle this silently, without the need for a new restart. See PIC. **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#9
|
||||
|
||||
its because the trigger is after x seconds, its technically I would not classify this as a bug of the script. I personally think on application start, jd should check for core updates again and dl & install (optional) within advanced settings.
alternatively to 'fix' this you would need an additional script to run after start 'JDownloader started', and re-run the same script.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#10
|
||||
|
||||
@guardo: The script is triggered every 10 mins. Auto update check is triggered every 5 mins. you are free to change the interval timings to your needs
__________________
JD-Dev & Server-Admin Last edited by guardao; 26.07.2021 at 13:05. |
#11
|
||||
|
||||
Quote:
The script - "its because the trigger is after x seconds..." - "...to 'fix' this you would need an additional script to run after start 'JDownloader started', and re-run the same script. " - as RAZTOKI wrote. |
#12
|
||||
|
||||
@guardo: at JD start, JDownloader doesn't know about pending update. Then the auto update start (I think default 5 minute interval) checks for pending updates and changes the flag. The eventscripter script now sees pending update and can react.
If you want for shorter waiting time, then just update your timings
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
@guardao: If an update is available, the script will automatically update and restart JD when it is idle, without any user interaction. If an update is available on startup, the script will install and restart JD, if it is idle during the next check (once every 10 minutes).
If you want to always check for updates on startup, you can start JD with '-forceupdate' switch. |
#14
|
||||
|
||||
Quote:
|
#15
|
||||
|
||||
@guardo: Start JDownloader with -forceupdate commandline parameter
__________________
JD-Dev & Server-Admin |
|
|