JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 17.12.2020, 15:36
nathan1 nathan1 is offline
JD VIP
 
Join Date: Apr 2012
Posts: 395
Default 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
Reply With Quote
  #2  
Old 17.12.2020, 15:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

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
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
  #3  
Old 17.12.2020, 15:58
nathan1 nathan1 is offline
JD VIP
 
Join Date: Apr 2012
Posts: 395
Default

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.
Reply With Quote
  #4  
Old 17.12.2020, 16:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

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
Reply With Quote
  #5  
Old 17.12.2020, 16:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

you have to take a look at jd.plugins.decrypter.MtlAreRg source
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 17.12.2020, 16:13
nathan1 nathan1 is offline
JD VIP
 
Join Date: Apr 2012
Posts: 395
Default

@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.
Reply With Quote
  #7  
Old 17.12.2020, 16:17
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Yes but that's not our repository.
Ours is here.

-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 Jiaz; 17.12.2020 at 16:35.
Reply With Quote
  #8  
Old 17.12.2020, 16:25
nathan1 nathan1 is offline
JD VIP
 
Join Date: Apr 2012
Posts: 395
Default

@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?
Reply With Quote
  #9  
Old 17.12.2020, 16:36
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

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*\\&nbsp;\\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*,)?)", "");
        }
-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
  #10  
Old 17.12.2020, 16:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

@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
Reply With Quote
  #11  
Old 17.12.2020, 16:41
nathan1 nathan1 is offline
JD VIP
 
Join Date: Apr 2012
Posts: 395
Default

@psp, Jiaz

Thank you very much and thanks for your patience.
I will follow your indications and officiale source code repository
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:49.
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.