LinkCrawler Rule example - DIRECTHTTP
DIRECTHTTP rules can be used to do the following tasks:
Simple example: Accept attachments from the JDownloader knowledgebase:
Let's say you want to download this URL:
https://support.jdownloader.org/Knowledgebase/Article/GetAttachment/42/15166
JD will not pickup this URL - it will only find the image behind it if you add it via "Add Links" dialog and let JD deep-scan.
The following rule will make JD always accepot this kind of URL:
[
{
"enabled": true,
"logging": false,
"maxDecryptDepth": 1,
"name": "example rule for DIRECTHTTP",
"pattern": "https://support\\.jdownloader\\.org/Knowledgebase/Article/GetAttachment/\\d+/\\d+",
"rule": "DIRECTHTTP"
}
]
As a side-effect, you can now also let JD deep-parse any of our knowledgebase articles and it will find all of these attached URLs automatically.