#1
|
|||
|
|||
how to open or decrypt .ejs files located in \cfg folder
Hi Staff,
I wish to take a look about metalarea plugin/decrypter to understand how it works. I try to find relative files on github where source code is located but I can't find subconf_metalarea.org.ejs Is there a way to open it ? I make a copy **External links are only visible to Support Staff**here Thanks for any help |
#2
|
||||
|
||||
What are you trying to do?
You don't really need to manually open it. Also, if you've got JD running in IDE, you can simply debug whatever you're trying to do. Are you having issues with the login functionality of this crawler plugin? -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
I wanted to understand what code you use to perform the operations to extract the text from the tags of the metalarea links and the url present in its relative pages.
The extracted text then goes to create the folder name. I'm interested in the code that does this thing. |
#4
|
||||
|
||||
subconf doesn't contain anything of this. It contains the plugin settings/configuration but not the logic/nor any link data
__________________
JD-Dev & Server-Admin |
#5
|
||||
|
||||
you have to take a look at jd.plugins.decrypter.MtlAreRg source
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
@Jiaz
Is this jd.plugins.decrypter.MtlAreRg? **External links are only visible to Support Staff****External links are only visible to Support Staff** I don't understand if you use a simply regex to extract text from tag <title>, I don't see that piece Last edited by nathan1; 17.12.2020 at 16:19. |
#7
|
||||
|
||||
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by Jiaz; 17.12.2020 at 16:35. |
#8
|
|||
|
|||
@psp
Ok, I follow now your guide but taking a fast look I don't understand if you use a simply regex to extract text for package names from tag <title> (or not), I don't see that code piece in decrypter. Is included in MtlAreRg decrypter or in another file? |
#9
|
||||
|
||||
The packagename is obtained in lines 60-70:
Please keep in mind that the version on github is NOT the current version - it is from 2013! Code:
String fpName = br.getRegex("<td width='99%' style='word-wrap:break-word;'>\\s*<div>\\s*<img[^>]*/>\\s*\\ \\s*<b>\\s*(.*?)\\s*</div>\\s*</td>").getMatch(0); if (fpName == null) { fpName = br.getRegex("<title>\\s*(.*?)\\s*</title>").getMatch(0); if (fpName != null) { fpName = fpName.replace(" - Metal Area - Extreme Music Portal", ""); } } if (fpName != null) { fpName = fpName.replaceAll("(</b>(\\s*,)?)", ""); }
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#10
|
||||
|
||||
@nathan1: please use the official source code repository, see https://svn.jdownloader.org/projects/jd
your github clone is outdated like hell
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
@psp, Jiaz
Thank you very much and thanks for your patience. I will follow your indications and officiale source code repository |
Thread Tools | |
Display Modes | |
|
|