JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 12.10.2019, 19:13
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default Domain Rules

It works but with one caveat which is that I must set this hoster at the top of the download queue or assign it a high priority, otherwise it will download one from a different hoster and two from the rule set hoster, unless I'm missing something, I don't see any way around this.

My global max limit is one, domain rule for uploaded: max sim down = 2

[ {
"domainPattern" : ".*uploaded.to",
"filenamePattern" : null,
"accountPattern" : null,
"pluginPattern" : null,
"enabled" : true,
"maxSimultanDownloads" : 2,
"allowToExceedTheGlobalLimit" : true
} ]

I forgot to mention that setting the "allowToExceedTheGlobalLimit" to false does not change or affect it.

Last edited by RPNet-user; 12.10.2019 at 19:28. Reason: include more info
Reply With Quote
  #2  
Old 14.10.2019, 15:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

What exactly do you want to achieve? *one from different* and one from uploaded?
What's your goal?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 14.10.2019, 18:27
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

No, as is works fine, however, I just wanted to know if it was possible without setting the ruled host at the top or setting a high priority for it.
Reply With Quote
  #4  
Old 14.10.2019, 18:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Quote:
Originally Posted by RPNet-user View Post
if it was possible without setting the ruled host at the top or setting a high priority for it.
if it was possible to ? to what ?
I'm sorry, maybe I'm just not seeing the trees in the forest but that's why I'm asking what you're trying to achieve Do you just want to limit uploaded to max 2 links or what in specific?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 14.10.2019, 19:46
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

Oh, ok, I see:

If I don't set the ruled host at the top/high priority then It will download three simultaneous files: one from a different non-ruled host and the two from the ruled-host(uploaded), however, I only want to download one file at time from a non-uploaded host except when downloading from "uploaded" which then I want it to automatically download two files at a time.
In a nutshell: 1-global download except for uploaded(2).

It works just fine as I want it to with the caveat that the uploaded files must be set at the top of the download queue or set them with a high priority, that way it will download only two files from uploaded simultaneously till it reaches the other hosts which then it will only download one single file at a time from a different host and globally.

Last edited by RPNet-user; 14.10.2019 at 19:55. Reason: added information
Reply With Quote
  #6  
Old 14.10.2019, 22:54
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,201
Default

global max sim dl = 3
package customiser rule for uploaded setting priority to above default.
domain rule uploaded to = 2
domain rule fo NOT uploaded = 1 (can be done with regex)

should achieve what you want, just if there are no uploaded links present you will still be locked at 1 download.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #7  
Old 15.10.2019, 03:59
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

Quote:
Originally Posted by raztoki View Post
package customiser rule for uploaded setting priority to above default.
.
The packagizer rule for setting any hoster to above default does not work, I tried every domain they have and none of them works, uploaded.to, uploaded.net, ul.to, and tried them with "downloadurl" to "contains", and tried "sourceurl(s)" to "contains" with either and/or both, but nothing, tried it by starting them from the linkgrabber or from the downloads section, but nothing. I thought maybe it was an issue with uploaded so I tried it with rapidgator and nothing, the priority does not work for this host either.
Reply With Quote
  #8  
Old 15.10.2019, 13:52
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,201
Default

I've set priority years ago, via package customiser rules and it used to work aok, but I haven't been using JD at all in the last year or two so not sure what your doing wrong or if a bug exists.

For memory all links get renamed to uploaded.net
Code:
        link.setUrlDownload(protocol + "://uploaded.net/file/" + id);
yep

you could email your package customiser rule to support@jdownloader.org and we could test them with some provided test links.

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #9  
Old 15.10.2019, 16:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Either create
1.) one rule that matches to all NON uploaded and limit to 1 max download and set max 2 globally

or

2.) two rules, one that matches all NON uploaded and limit to 1 max download and another one to match uploaded and allow 2

That way you have NON uploaded just one globally and uploaded may download up to 2 concurrently

There is no need to change priority. allowToExceedTheGlobalLimit but be set to true for the uploaded rule
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 15.10.2019 at 16:05.
Reply With Quote
  #10  
Old 15.10.2019, 16:30
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

@Jiaz, thanks, either of these are more practical, I will try one or the other.

I have set rules/conditions in the past for different hosts via the packagizer and they all worked perfectly, however, for the priority setting; either I'm not doing something correctly or there is a bug as raztoki suggested.
Reply With Quote
  #11  
Old 15.10.2019, 16:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Please export your rule so we can test it. Please include example link into the rule and send to support@jdownloader.org
It's easier because we might create a different working rule and you might have done it differently
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 15.10.2019, 17:52
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default Exported usage rule sent

Quote:
Originally Posted by Jiaz View Post
Please export your rule so we can test it. Please include example link into the rule and send to support@jdownloader.org
It's easier because we might create a different working rule and you might have done it differently
I just sent it with subject: "Uploaded high priority usage rule with sample link"
Reply With Quote
  #13  
Old 15.10.2019, 18:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Your rule works just fine. Priority is set. You've got to check the file priority, NOT the priority of the package
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 15.10.2019, 18:11
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

Quote:
Originally Posted by Jiaz View Post
Your rule works just fine. Priority is set. You've got to check the file priority, NOT the priority of the package
What do you mean? I though that this rule would automatically set the priority for the file(s) for that particular hoster.
Reply With Quote
  #15  
Old 15.10.2019, 18:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Yes, but those rules are ONLY processed when adding the links.
It will set the priority of the LINK, not the package that holds the links. So when you check the priority, you have to check the link itself, not its package.

With my 2 suggested ideas, you should not have to change priority at all
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 15.10.2019, 22:24
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default

That's just it, it does not prioritize the link or any links at all "when adding them" regardless.

But anyway, about your two suggestions: which rule category were you referring to as I was thinking of "GeneralSettings: Domain Rules", or are you referring to the Packagizer Rules? Because in Domain Rules I see where only one rule can be set at time; also, I do not know the regular expression for any/all "Non uploaded" hosts for usage in either domain rules or packagizer rules.
Reply With Quote
  #17  
Old 16.10.2019, 09:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

How do you add the links? Via AddLinks Dialog? There you'll find a checkbox *override packagizer rules...* That must be disabled!
Your packagizer rules worked out-of-the-box. Just imported and worked fine.

You can have multiple domain rules. Syntax is JSON. It's an Object Array

Quote:
[{Rule1}, {Rule2},....,{Rulex} ]
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 16.10.2019, 10:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

Pattern for NOT contain uploaded
Quote:
^((?!uploaded).)*$
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 16.10.2019, 10:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,456
Default

See regextester.com/15 and regex101.com
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 16.10.2019, 20:15
RPNet-user RPNet-user is offline
Linkgrabbing Monster
 
Join Date: Apr 2017
Posts: 81
Default Disparity issue with "domainPattern"

Quote:
Originally Posted by Jiaz View Post
Pattern for NOT contain uploaded
Yes, the override was preventing the automatic priority flag of the links when adding them to the linkgrabber queue, it works properly when disabled but changes several of my custom preferences so it is easier to either manually set it or placed them at the top of the downloads queue.

I tried and tested both of your suggested rule options; first with one rule and then with two rules, however, since rule one does not work properly, rule two will not work properly either.

The disparity issue is with the "domainPattern", for example:

For both of the following, I set "allowToExceedTheGlobalLimit" : false

1.) When this pattern is used: ^((?!uploaded).)*$ <------- the "maxSimultanDownloads" : 1 is ignored by the global max simultaneous downloads which is set at 2 and it starts downloading two simultaneous files from two different hosters or same hoster.

2.) When this pattern is used: ^((?!uploaded.net).)*$ <------- the global max simultaneous downloads of 2 is ignored and only one file will download at a time regardless of the hoster which includes uploaded.

Using the two rules option did not work either because of the disparity issue with the "domainPattern".
I also tried several other inverted combinations with the following:

global max simultaneous downloads
"domainPattern"
"maxSimultanDownloads"
"allowToExceedTheGlobalLimit"
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 20:14.
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.