#1
|
|||
|
|||
can't add new link crawler rule
Hello.
I'm trying to add new link crawler rule for JD, I copy & pasted code to JD, But it doesn't work and I see a pop-up message that an error has occurred. Here's a link for the site I want to add **External links are only visible to Support Staff****External links are only visible to Support Staff** and here's how I wrote link crawler rule Code:
[ { "enabled" : true, "logging" : false, "maxDecryptDepth" : 1, "name" : "coolinet.net", "pattern" : "**External links are only visible to Support Staff**, "rule" : "DIRECTHTTP" } ] |
#2
|
|||
|
|||
There is an error in the JSON syntax.
In the pattern you must double all Backslahes (Change from \ to \\). Then is the syntax okay. |
#3
|
||||
|
||||
sorry thought i posted this morning,
and it wont be DIRECTHTTP, it will be DEEPDECRYPT https://support.jdownloader.org/Know...le-deepdecrypt
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#4
|
|||
|
|||
Nice tip! I'm gonna edit previous code.
Last edited by vxvaeaw; 11.09.2022 at 16:07. |
#5
|
|||
|
|||
Quote:
I rewritten the rule, but there was still an error, so I can't add it. I'd appreciate it if you could look at what's wrong. Code:
[ { "enabled" : true, "logging" : false, "maxDecryptDepth" : 1, "name" : "coolinet.net", "pattern" : "**External links are only visible to Support Staff**, "rule" : "DEEPDECRYPT", "packageNamePattern" : null, "passwordPattern" : null, "deepPattern" : "(**External links are only visible to Support Staff** } ] |
#6
|
|||
|
|||
Quote:
Code:
[ { "cookies": null, "deepPattern": ".*yocoolnet\\.in/.*", "formPattern": null, "id": 1662912440941, "maxDecryptDepth": 1, "name": "coolinet.net", "packageNamePattern": null, "passwordPattern": null, "pattern": "https?://(.*\\.)?coolinet\\.net/.*", "rewriteReplaceWith": null, "rule": "DEEPDECRYPT", "enabled": true, "logging": false, "updateCookies": true } ] With this rule I get all video files. Please check it. Last edited by tarkett; 11.09.2022 at 20:10. |
#7
|
|||
|
|||
Quote:
I did some tests after modifying my code at first, and it went well. [additional question] I tried to rename downloaded files as like this, tried both, but won't work. Any idea? I wanted keep original Chinese title name. "packageNamePattern": "<h2>([^\\?#]+)</h2>", "packageNamePattern": "<h2>(.*?)</h2>", Last edited by vxvaeaw; 11.09.2022 at 22:12. |
#8
|
||||
|
||||
@vxvaeaw:I'm sorry but currently it's not possible to modify/set the filename, but you can create a packagizer rule, see for example https://support.jdownloader.org/Know...me-as-filename
eg set title as packagename and then use packagizer to use it as filename too
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
It's OK. I'm learning a lot of technics from this community. Thank you
|
#10
|
|||
|
|||
@jiaz: Maybe this can be a new feature, too set also the FileName directly in a LinkCrawler rule
|
#11
|
||||
|
||||
might be possible with only one file returned, if you deep decrypt to find many, you wont want them all returning with the same filename.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#12
|
||||
|
||||
@vxvaeaw: In case you need further help with this, just let us know
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|