View Single Post
  #29  
Old 11.06.2021, 14:06
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Quote:
Originally Posted by Jiaz View Post
@mgpai: you should update plugin to only disable the correct mirrors ... Check against the running download link
It does check against running download and disable the correct mirror.

Code:
if (
    link2.name == link.name &&
    link2.conditionalSkipReason.className == "MirrorLoading"
)
link = running lnk
link2 = current iteration link

current iteration link name == running link name
current iteration link className == "MirrorLoading"

If current iteration link is running link, className will not be equal to "MirrorLoading" (no csr, no classname = catch error), so only correct links (which match running link name) will be disabled.

Or is there any fault in logic? Either way, if there a better method can you please provide psuedo code? Let me know if I should contact you by email.

P.S.: I wanted to avoid using interval trigger. Will email you the script based on your method.

Last edited by mgpai; 11.06.2021 at 14:12.
Reply With Quote