There was a problem loading the comments.

Advanced Feature: Domain Rules

Support Portal  »  Knowledgebase  »  Viewing Article


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:

  • Download all items of a specific host with a fixed amount of e.g. 10 connections while your global chunk setting may be lower/higher
  • Allow specific items to allow to exceed the globally configured max simultaneous downloads limit
  • Allow more/less simultaneous downloads with specific accounts
  • Download all files with a specific file extension e.g. ".mp4" with more chunks than others

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
null/0 = use global value

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.

 


Related Articles


On-Premise Help Desk Software by SupportPal