JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10.03.2020, 09:50
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default [LinkCrawler Rule] Plugin For "subdivx.com" Subtitles

Hello, would you please add support for this site?

Example links:

**External links are only visible to Support Staff****External links are only visible to Support Staff**

Which contains two subtitles:

1-a **External links are only visible to Support Staff****External links are only visible to Support Staff**

1-b **External links are only visible to Support Staff****External links are only visible to Support Staff**

1-c **External links are only visible to Support Staff****External links are only visible to Support Staff**

2-a **External links are only visible to Support Staff****External links are only visible to Support Staff**

2-b **External links are only visible to Support Staff****External links are only visible to Support Staff**

2-c **External links are only visible to Support Staff****External links are only visible to Support Staff**

Ideally, "LinkGrabber" should get the compressed files directly after copying the parent links (1-a & 2-a).

Thanks.
Reply With Quote
  #2  
Old 10.03.2020, 12:31
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Hi,

adding these URLs from this simple website is easily possible using two LinkCrawler Rules:
Code:
[ {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "id" : 1583836017435,
  "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,
  "id" : 1583836017436,
  "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
} ]
-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?

Last edited by pspzockerscene; 10.03.2020 at 12:31. Reason: Fixed CODE tag
Reply With Quote
  #3  
Old 11.03.2020, 08:00
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default

I have tried different ways, but still can't add that code:



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?

Last edited by ElCho; 11.03.2020 at 08:03.
Reply With Quote
  #4  
Old 11.03.2020, 13:17
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
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
  #5  
Old 12.03.2020, 07:15
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default

It works now, but it would be great if you can add a final additional tweak, so in case I want to grab all the found subtitles for a determined title instead just a few selected ones, they get detected automatically and without extra files. I mean, from results pages like this one:

**External links are only visible to Support Staff****External links are only visible to Support Staff**

That kind of link should be processed automatically by the "clipboard observer", and just the relevant files should be added to the download list (rar/zip); they should be grouped as "Various Files" as well.

Quote:
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.
I mean, in the case I already have some previous rules over there and I want to add an additional one; it gets kind of tricky to add text the way one would do it in a regular text editor.
Reply With Quote
  #6  
Old 16.03.2020, 11:30
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by ElCho View Post
It works now, but it would be great if you can add a final additional tweak, so in case I want to grab all the found subtitles for a determined title instead just a few selected ones, they get detected automatically and without extra files. I mean, from results pages like this one:[...]

That kind of link should be processed automatically by the "clipboard observer", and just the relevant files should be added to the download list (rar/zip); they should be grouped as "Various Files" as well.
Using a 3rd Link Crawler Rule, this can easily be accomplished:
Code:
[ {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 1",
  "pattern" : "https?://www\\.subdivx\\.com/index\\.php\\?buscar=.+",
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "class=\"titulo_menu_izq\" href=\"(https?://[^\"]+\\.html)",
  "rewriteReplaceWith" : null
}, {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 2",
  "pattern" : "https?://www\\.subdivx\\.com/.*?\\.html",
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "(/bajar\\.php\\?id=\\d+[^<>\"]+)",
  "rewriteReplaceWith" : null
}, {
  "enabled" : true,
  "cookies" : null,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 3",
  "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
I mean, in the case I already have some previous rules over there and I want to add an additional one; it gets kind of tricky to add text the way one would do it in a regular text editor.
It is not complicated.
You can see the structure in my examples already.
You can also use e.g. web json editors to easier view & edit json syntax based contents e.g. jsoneditoronline.org.

-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
  #7  
Old 16.03.2020, 23:57
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default

Excellent!!!

Thanks a lot.
Reply With Quote
  #8  
Old 17.03.2020, 11:54
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Thanks for your feedback

-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
  #9  
Old 18.09.2020, 02:31
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default

Hello, for some reason, the above rules ceased to work when using the main subtitles' links, would you please fix it?

Thanks.
Reply With Quote
  #10  
Old 18.09.2020, 16:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

New/fixed rule:
Code:
[ {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 1",
  "pattern" : "https?://www\\.subdivx\\.com/index\\.php\\?buscar=.+",
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "class=\"titulo_menu_izq\" href=\"(https?://[^\"]+\\.html)",
  "rewriteReplaceWith" : null
}, {
  "enabled" : true,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 2",
  "pattern" : "https?://www\\.subdivx\\.com/.*?\\.html",
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : "(bajar\\.php\\?id=\\d+[^<>\"]+)",
  "rewriteReplaceWith" : null
}, {
  "enabled" : true,
  "cookies" : null,
  "updateCookies" : true,
  "logging" : false,
  "maxDecryptDepth" : 1,
  "name" : "subdivx.com example rule 3",
  "pattern" : "https?://www\\.subdivx\\.com/bajar\\.php.+",
  "rule" : "DIRECTHTTP",
  "packageNamePattern" : null,
  "passwordPattern" : null,
  "formPattern" : null,
  "deepPattern" : null,
  "rewriteReplaceWith" : null
} ]
As plaintext to get around our forum URL-censor:
pastebin.com/PjKPe7Rv

This line has changed:
Old:
Code:
  "deepPattern" : "(/bajar\\.php\\?id=\\d+[^<>\"]+)",
New:
Code:
  "deepPattern" : "(bajar\\.php\\?id=\\d+[^<>\"]+)",
-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
  #11  
Old 18.09.2020, 23:19
ElCho ElCho is offline
Tornado
 
Join Date: May 2014
Posts: 245
Default

It works again, much obliged.
Reply With Quote
  #12  
Old 21.09.2020, 15:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Thanks for your feedback

-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
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 10:29.
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 - 2024, Jelsoft Enterprises Ltd.