Advanced Feature: Domain Rules
What can I do with Domain Rules?
Using Domain Rules, you can effectively shape and customize download management.
Exemplaric use-cases:
Where do I find Domain Rules?
Advanced Settings -> GeneralSettings.domainrules
The above are just examples.
You can combine all markers and add finer rules this way.
Typically you will either use them to limit all downloads of one host or allow exceeding the global number of simultaneous downloads for one host.
These rules will not magically speed-up your downloads!
Example json structure of such rules:
[
{
"accountPattern": null,
"domainPattern": ".*jdownloader\\.org",
"filenamePattern": null,
"maxChunks": -15,
"maxSimultanDownloads": 20,
"pluginPattern": null,
"allowToExceedTheGlobalLimit": false,
"enabled": true
}
]
Example rule: allow all hosts to exceed the global limit:
[ {
"domainPattern" : ".+",
"enabled" : true,
"maxSimultanDownloads" : 21,
"allowToExceedTheGlobalLimit" : true
} ]
Example rule: limit a single host to max. 1 download:
[ {
"domainPattern" : "jdownloader\\.org",
"enabled" : true,
"maxSimultanDownloads" : 1,
"allowToExceedTheGlobalLimit" : false
} ]
Explanation of all available fields:
Field name | Description | Data type |
enabled | Use this to enable/disable single domain rules | boolean |
pluginPattern | Pattern of domain of the actually used plugin (useful for multihoster downloads) |
RegEx |
domainPattern | Pattern of the domain | RegEx |
maxChunks |
Max allowed chunks 2, 3, 5 = force X chunks -2, -3, -5 = allow up to X chunks |
Integer |
maxSimultanDownloads | Max allowed simultaneous downloads | Integer |
accountPattern | Pattern of username of the used account | RegEx |
allowToExceedTheGlobalLimit | Enable/disable exceeding of the global limit | boolean |
filenamePattern | Pattern of filename of the file to download | RegEx |
Important notes:
You cannot exceed any plugin limits using such rule.
If a plugin has a fixed connection limit of "max 5 chunks" and you setup a rule that wants to force 10, the plugins' max value will be used instead.