View Single Post
  #4  
Old 11.03.2020, 12:17
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by ElCho View Post
I have tried different ways, but still can't add that code:

Sorry I must have added a syntax error just before posting it.
The following should work fine:
Code:
[ {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 1",
  "pattern" : "https?://www\\.subdivx\\.com/.*?\\.html",
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "(/bajar\\.php\\?id=\\d+[^<>\"]+)",
  "rewriteReplaceWith" : null
}, {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 2",
  "pattern" : "https?://www\\.subdivx\\.com/bajar\\.php.+",
  "rule" : "DIRECTHTTP",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : null,
  "rewriteReplaceWith" : null
} ]
Quote:
Originally Posted by ElCho View Post
Why is kind of limited the way one can add/edit the entered code into that box? I mean, for example the "Return" key has no effect at all. Moreover when some new code has to be combined with an already existing one. How that should be correctly accomplished?
What do you mean?
Combining more than two of such rules?
Check out the json syntax (google).
As you maybe can see, rules are in an Array ("[]") and comma separated.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote