Thread: [See Bugtracker] AutoUpdate while reconnect
View Single Post
  #10  
Old 11.12.2016, 14:54
DAC324 DAC324 is offline
DSL Light User
 
Join Date: Nov 2015
Posts: 31
Default

Hello,

it is a pity that this great idea is apparently not being taken into account any more. Indeed, a script could do the job (in my opinion).

Pseudo language:
Code:
if (reconnect)
{
    if (update_available)
    { 
       write_environment ("reconnect", "Yes")
       do_update()
       restart_jD()
 }
}
Upon jDownloader's restart:
Code:
if check_environment ("reconnect")
{
    do_reconnect()
}
That means if jDownloader detects that updates are available once it is ready for doing a reconnect, it should write the information that a reconnect is required into some environment variable or config file.
Afterwards (without having done the reconnect so far) the update including restart could be performed.
Upon restart, jDownloader then checks if a reconnect is pending. If yes, it does it before starting the downloads.

Unfortunately, I am not that much familiar with jDownloader's script feature to determine if that is a reasonable approach.

Thank you very much and kind regards,

DAC324
Reply With Quote