JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 10.06.2021, 15:22
Dockel Dockel is offline
JD VIP
 
Join Date: Feb 2020
Posts: 344
Default

Quote:
Settings -> Packagizer:
If <yourCondition> (e.g. "if downloadurl contains "zippyshare.com") -> Then set -> Priority -> Your wished priority
So that means the zippy (mirror) links always would automatically be downloaded first?
__________________
Aktuelles Windows
Reply With Quote
  #22  
Old 10.06.2021, 15:33
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 59,285
Default

Yes.
You can simply test this by manually assingning the highest prio on some links in your downloadlist
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #23  
Old 10.06.2021, 15:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,707
Default

Quote:
Originally Posted by Dockel View Post
So that means the zippy (mirror) links always would automatically be downloaded first?
The *next downloadlink* selection will prefer them, yes
__________________
JD-Dev & Server-Admin
Reply With Quote
  #24  
Old 10.06.2021, 15:36
Dockel Dockel is offline
JD VIP
 
Join Date: Feb 2020
Posts: 344
Default

OK, yes, I will try it, thank you very much!
__________________
Aktuelles Windows
Reply With Quote
  #25  
Old 11.06.2021, 09:05
Dockel Dockel is offline
JD VIP
 
Join Date: Feb 2020
Posts: 344
Default

mgpai? Would it be possible to add to the script - works great - a function to add a comment or / and something else that lets the deactivated links (by the script) distinguish from other deactivated links? E.g. links I manually deactivated (temporarilly), etc.?

And may be the script could only effect resumable downloads?
__________________
Aktuelles Windows

Last edited by Dockel; 11.06.2021 at 09:45.
Reply With Quote
  #26  
Old 11.06.2021, 10:44
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,341
Default

Quote:
Originally Posted by Dockel View Post
Would it be possible to add to the script... And may be the script could only effect resumable downloads?
Script updated.

While the script is currently set to disable when 50% of a file is loaded, you can adjust the percentage limit in the script as required. If necessary, the script can be modified to check for bytes loaded instead of percentage loaded.
Reply With Quote
  #27  
Old 11.06.2021, 10:59
Dockel Dockel is offline
JD VIP
 
Join Date: Feb 2020
Posts: 344
Default

That is great! Thank you so much!

Adjustable by this value: = 50%. Alright, very good.

OK, good to know, percantage is very good at the moment, thank you.

Many thanks again!
__________________
Aktuelles Windows
Reply With Quote
  #28  
Old 11.06.2021, 13:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,707
Default

@mgpai: you should update plugin to only disable the correct mirrors
use ConditionalSkipReasonSandbox.getDownloadLinkCondition to get the DownloadLinkSandbox of the running download. Check against the running download link
__________________
JD-Dev & Server-Admin
Reply With Quote
  #29  
Old 11.06.2021, 14:06
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,341
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
  #30  
Old 11.06.2021, 14:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,707
Default

@mgpai: ah you use the name as condition, that's okay as well
__________________
JD-Dev & Server-Admin
Reply With Quote
  #31  
Old 11.06.2021, 14:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,707
Default

Quote:
Originally Posted by mgpai View Post
Either way, if there a better method can you please provide psuedo code? Let me know if I should contact you by email.
ConditionalSkipReasonSandbox.getDownloadLinkCondition to get the DownloadLinkSandbox, then you can compare getUUID
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:56.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.