#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
What exactly do you want to achieve? *one from different* and one from uploaded?
What's your goal?
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
Quote:
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 |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
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. :] |
#7
|
||||
|
||||
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.
|
#8
|
||||
|
||||
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); 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. :] |
#9
|
||||
|
||||
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. |
#10
|
||||
|
||||
@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. |
#11
|
||||
|
||||
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 |
#12
|
||||
|
||||
Exported usage rule sent
Quote:
|
#13
|
||||
|
||||
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 |
#14
|
||||
|
||||
What do you mean? I though that this rule would automatically set the priority for the file(s) for that particular hoster.
|
#15
|
||||
|
||||
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 |
#16
|
||||
|
||||
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. |
#17
|
||||
|
||||
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:
__________________
JD-Dev & Server-Admin |
#18
|
||||
|
||||
Pattern for NOT contain uploaded
Quote:
__________________
JD-Dev & Server-Admin |
#19
|
||||
|
||||
See regextester.com/15 and regex101.com
__________________
JD-Dev & Server-Admin |
#20
|
||||
|
||||
Disparity issue with "domainPattern"
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" |
#21
|
||||
|
||||
I will answer and do some tests myself as soon as I find time
__________________
JD-Dev & Server-Admin |
#22
|
||||
|
||||
ok, thanks
|
Thread Tools | |
Display Modes | |
|
|