JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 08.10.2019, 18:17
Loberon Loberon is offline
Baby Loader
 
Join Date: Oct 2019
Posts: 5
Default I need help with linkcrawler rule for newgrounds

Since Jdownloader doesn't seem to recognize links like **External links are only visible to Support Staff****External links are only visible to Support Staff** for some reason, I tried to make Jdownloader recognize it and grab the download links e.g.:**External links are only visible to Support Staff****External links are only visible to Support Staff** (which by themselves get recognized by jdownloader) from these links **External links are only visible to Support Staff****External links are only visible to Support Staff** via linkcrawler rule.
I searched pretty much every thread on linkcrawler rules in here and ended up with this code, which I put into the link crawler rule in the advanced settings (I also made sure to tick that link crawler rules checkbox):
Code:
[ {
  "enabled" : true,
  "cookies" : null,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 10,
  "id" : 1570539992812,
  "name" : "newgrounds.com",
  "pattern" : "**External links are only visible to Support Staff**,
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "**External links are only visible to Support Staff****External links are only visible to Support Staff**[A-Za-z0-9-]+/[A-Za-z0-9-]+/[A-Za-z0-9-_.?]+",
  "rewriteReplaceWith" : null
} ]
I did this according to regex rules, but had to throw out the escaping of some characters, since that gives me an error message from jdownloader. (despite regex101 telling me that my original regex, that had the escaping of characters via \ for these links are correct and that they match with all the desired links)

Well my current code for this does nothing. Just a looking for downloads popping up for half a second and disappearing without grabbing any links once I add the links manually.

Are there any jdownloader specific regex variations I need to consider? Since regular escaping of characters with a \ doesn't work here, I'd like to know how to do it right then please. Or do I have to do something else for this to work as intended? (I couldn't find any jdownloader specific tutorial for this either and since links are not visible to me I can't really look it up or learn that from any examples in other threads...)
Reply With Quote
  #2  
Old 08.10.2019, 19:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

was caused by plugin error, will be fixed with next update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 08.10.2019, 19:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
Originally Posted by Loberon View Post
S
I did this according to regex rules, but had to throw out the escaping of some characters, since that gives me an error message from jdownloader. (despite regex101 telling me that my original regex, that had the escaping of characters via \ for these links are correct and that they match with all the desired links)
Are there any jdownloader specific regex variations I need to consider? Since regular escaping of characters with a \ doesn't work here, I'd like to know how to do it right then please. Or do I have to do something else for this to work as intended? (I couldn't find any jdownloader specific tutorial for this either and since links are not visible to me I can't really look it up or learn that from any examples in other threads...)
The syntax is json and that causes additional escaping
You can use json validator (searchengine of your choice) and it will tell you where escaping is wrong
most important " -> " and \ -> \\
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 08.10.2019, 19:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

The reason why your custom rule doesn't work, because rules are processed AFTER all plugins had a chance and the plugin had a bug and that's why it didn't work
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 08.10.2019, 19:37
Loberon Loberon is offline
Baby Loader
 
Join Date: Oct 2019
Posts: 5
Default

Oh lol I didn't expect it to be a bug, me being dumb was more likely to me tbh. xD I'll look into that json validator thing. Thank you very much!
Reply With Quote
  #6  
Old 08.10.2019, 20:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Update is already live and your link should work fine again
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 08.10.2019, 20:55
Loberon Loberon is offline
Baby Loader
 
Join Date: Oct 2019
Posts: 5
Default

I tested it and I noticed that the grabbing of multi-image posts e.g. the third link from my original post: **External links are only visible to Support Staff****External links are only visible to Support Staff** doesn't work correctly. Only the first image-link gets grabbed and the others don't, which as I found out have e.g. **External links are only visible to Support Staff****External links are only visible to Support Staff** a different link pattern compared to the top picture. (my bad for not noticing that beforehand) My custom rule, which, now that I fixed it with that json validator, should be working covers that different pattern. But it doesn't seem to come into play again, could that be another issue with the plugin? Is there any way for me to turn off the plugin or change priorization, so the custom rule is prioritized so I can test, if it's a plugin issue or an issue with the custom rule?

Last edited by Loberon; 08.10.2019 at 20:58.
Reply With Quote
  #8  
Old 10.10.2019, 19:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Yes,thanks for the follow up. The current plugin doesn't support multiple images for single art/view link

can you provide more example links?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 10.10.2019, 19:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
Originally Posted by Loberon View Post
Is there any way for me to turn off the plugin or change priorization, so the custom rule is prioritized so I can test, if it's a plugin issue or an issue with the custom rule?
I'm sorry, not at the moment, but I can add support for it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 10.10.2019, 19:54
Loberon Loberon is offline
Baby Loader
 
Join Date: Oct 2019
Posts: 5
Default

2 pics: **External links are only visible to Support Staff****External links are only visible to Support Staff**


1 pic 1 gif: **External links are only visible to Support Staff****External links are only visible to Support Staff**


8 pics: **External links are only visible to Support Staff****External links are only visible to Support Staff**


2 pics: **External links are only visible to Support Staff****External links are only visible to Support Staff**


2 pics: **External links are only visible to Support Staff****External links are only visible to Support Staff**


4 pics: **External links are only visible to Support Staff****External links are only visible to Support Staff**


I hope these are sufficient. If not, let me know. Thanks for the help!

Last edited by Jiaz; 10.10.2019 at 19:59.
Reply With Quote
  #11  
Old 10.10.2019, 20:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Thanks
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 23:05.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.