JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 19.05.2019, 17:09
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default Account sorting in account manager

In Account manager, let's say I've more than one account for one file hoster (each with different download traffic left). Can you add an option to try to use the account with least download traffic available first?

P.S. I know I can add manual *Usage Rule* for a specific account but in that case, I'll have to update the rules from time to time.
Reply With Quote
  #2  
Old 20.05.2019, 18:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Please use 'Usage Rule' and change *Distribution Rule* to BALANCED (tries to balance to accounts in group).
The order in account overview has no influence at all. If that mode doesn't fit your requirement, then we can add more
rule methods
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 21.05.2019, 08:16
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Thanks for the feedback but I'm not finding the BALANCED option in *Distribution Rule* menu. I only found RANDOM and ORDER.

Also, can you make a special setting in the 'Usage Rule' to set the *Distribution Rule* for all hosters?

Last edited by Cyberavater; 21.05.2019 at 08:24.
Reply With Quote
  #4  
Old 21.05.2019, 14:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default


Sorry, forgot that balanced currently not available in standalone but only in developer mode
as it's not finished yet.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 21.05.2019, 14:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Quote:
Originally Posted by Cyberavater View Post
Also, can you make a special setting in the 'Usage Rule' to set the *Distribution Rule* for all hosters?
That won't happen as that's not how 'Usage Rules' work. But once balanced is working, we can add *default* rules that apply to all accounts where no customized rules do exist.

__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 22.05.2019, 09:21
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Quote:
Originally Posted by Jiaz View Post
But once balanced is working, we can add *default* rules that apply to all accounts where no customized rules do exist.
That'll do. Looking forward to it!
Reply With Quote
  #7  
Old 22.05.2019, 10:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Thanks for your understanding and sorry that I can't provide a solution now
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 24.06.2019, 23:05
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Also, while working on this you should also add a feature that by which we can specify in usage rule not to use specific MultiHoster's bandwidth for specific (free) hosters (i.e. androidfilehost.com is free anyway so I wouldn't want my filebit.pl's bandwidth to be wasted on that, so I added a rule not use a specific account but after I added another (new) account I had to edit the rule for that well. So, along with the rule to not use an account, I'd like a rule to avoid using a MultiHoster altogether).

Last edited by Cyberavater; 24.06.2019 at 23:11.
Reply With Quote
  #9  
Old 25.06.2019, 18:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

I will add a *Disabled* mode in Account Usage Rules. That way you can disable all Multihoster
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 26.06.2019, 14:24
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Quote:
Originally Posted by Jiaz View Post
I will add a *Disabled* mode in Account Usage Rules. That way you can disable all Multihoster
Thanks, that'll be really helpful.
Reply With Quote
  #11  
Old 26.06.2019, 17:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Quote:
Originally Posted by Cyberavater View Post
Thanks, that'll be really helpful.
Will be available with next core update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 23.07.2019, 10:28
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Suppose I have two different Multihoster 'A' (debriditalia.com) and 'B' (Filebit.pl). Both Multihoster account can be used for downloading from 'C' (turbobit.net). While I can use 'A' for downloading with unlimited bandwidth but for a limited time (i.e. 1-month premium membership expiry date) I can also use 'B' for downloading limited bandwidth but use for unlimited time (i.e. premium membership doesn't expire before finishing bandwidth).

Can you modify the Account manager plugin to smartly choose the account (i.e. Try to download with 'A' before trying with 'B')

Last edited by Cyberavater; 23.07.2019 at 10:39.
Reply With Quote
  #13  
Old 23.07.2019, 13:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Place A and B in new Group and change Mode to Order, then JDownloader will first try A then B
no customized rules will now check for expire date as well
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 23.07.2019 at 14:11.
Reply With Quote
  #14  
Old 23.07.2019, 14:45
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,196
Default

settings > account manager > useage rule tab
add rule > turbobit
distribution cell, ORDER.
drag and drop account in the order you want to use first to last.
save

edit: guess i should refresh on old tabs before posting
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 23.07.2019 at 14:51.
Reply With Quote
  #15  
Old 23.07.2019, 18:28
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Quote:
Originally Posted by raztoki View Post
settings > account manager > usage rule tab
add rule > turbobit
distribution cell, ORDER.
drag and drop account in the order you want to use first to last.
save

edit: guess I should refresh on old tabs before posting
I know I can customize rule to fill my need, but I was expecting something automatic (default) for these cases as there are many other hoster than 'C' (turbobit.net) when my advice to select the account, is by default expected (I mean who/why would want otherwise?). Setting rule for something that should be default it not wise (IMO).

Quote:
Originally Posted by Jiaz View Post
no customized rules will now check for expire date as well
Does that mean, JD2 will "Try to download with 'A' before trying with 'B'" without any *Usage Rule* (by default)?
Reply With Quote
  #16  
Old 23.07.2019, 19:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Yes, it will sort multihoster and premium accounts by expire date when no custom rule exists
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 23.07.2019, 22:49
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

Quote:
Originally Posted by Jiaz View Post
Yes, it will sort multihoster and premium accounts by expire date when no custom rule exists
Thanks! Much appreciated.
Reply With Quote
  #18  
Old 24.07.2019, 00:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,196
Default

so if both accounts are are unlimited its random.
The backend doesn't know at the selection process how much traffic is left for each host that multihoster supports, until its run with canHandle function (some providers don't tell you until you try and generate a link even), if provider has information available and coders have supported its function within the plugin. but this is more a function of if account can be used for that host more so than most traffic left as it returns true or false.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 24.07.2019 at 00:52.
Reply With Quote
  #19  
Old 24.07.2019, 10:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Quote:
Originally Posted by raztoki View Post
so if both accounts are are unlimited its random.
more or less, yes
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 26.07.2019, 08:28
Cyberavater Cyberavater is offline
JD VIP
 
Join Date: Feb 2019
Posts: 371
Default

So, if both accounts are unlimited it's random?>More or less, yes.

In that case, instead of making it random can you make it sort account by 'least bandwidth left'?
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 01:35.
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 - 2019, Jelsoft Enterprises Ltd.