JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 10.06.2021, 16:22
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
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, 16:33
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
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

Erste Schritte & Tutorials || 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?
Reply With Quote
  #23  
Old 10.06.2021, 16:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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, 16:36
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
Default

OK, yes, I will try it, thank you very much!
__________________
Aktuelles Windows
Reply With Quote
  #25  
Old 11.06.2021, 10:05
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
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 10:45.
Reply With Quote
  #26  
Old 11.06.2021, 11:44
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,528
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, 11:59
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
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, 14:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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, 15:06
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,528
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 15:12.
Reply With Quote
  #30  
Old 11.06.2021, 15:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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, 15:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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
  #32  
Old 24.08.2022, 10:17
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
Default

How can I change / adapt this line, if I want the mirrors to be deactivated when a download is downloaded 5 %:

link.bytesLoaded / link.bytesTotal < 0.50 // 0.50 = 50%
to
link.bytesLoaded / link.bytesTotal < 0.05 // 0.05 = 05 %

Is that right?
__________________
Aktuelles Windows
Reply With Quote
  #33  
Old 24.08.2022, 13:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@Dockel: sounds about right, the while loop loops while the condition is true, so until 5% is loaded
__________________
JD-Dev & Server-Admin
Reply With Quote
  #34  
Old 24.08.2022, 13:42
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
Default

OK, so I will replace it. Thank you!

I was also unsure whether it might have to be like this:

link.bytesLoaded / link.bytesTotal < 0.05 // 0.05 = 5%
__________________
Aktuelles Windows
Reply With Quote
  #35  
Old 24.08.2022, 14:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Quote:
Originally Posted by Dockel View Post
// 0.05 = 5%
this part is only a comment
__________________
JD-Dev & Server-Admin
Reply With Quote
  #36  
Old 24.08.2022, 14:07
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 663
Default

Ah, zwei Schrägstriche, ja. / Two backslashes, yes.

Danke!
__________________
Aktuelles Windows
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 05:16.
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 - 2024, Jelsoft Enterprises Ltd.