JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 18.01.2020, 20:25
BJN01 BJN01 is offline
JD Adviser
 
Join Date: Jan 2020
Posts: 113
Question file Class (?)

Hello!
I don't know languages ​​and the like but I'm trying to understand how some plugins work to try to make one but there are some things I am doubtful about and would like a clarification (if possible):

JD plugins are files like "NameSite.class", so to "tell" jd what to save from the site "AAA.example" I have to write the commands in an "AAAexample.class" file and place it in the dir "... jd \ plugins \ decrypter"

to test it is sufficient to restart jd?
will the class file be detected automatically or should it be inserted in some particular list? (or specific file of jd ??)


to restore a class that does not work, with a previous version that works, is it enough to replace it?
[if "yes", when this operation does not produce results what should I correct ?? (if I were able)]


in addition to regex what should I go into?

[the basic idea is to make jd automatically read some links that at the moment I have to go to "paste" him]
Reply With Quote
  #2  
Old 19.01.2020, 03:31
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

java files can have any naming scheme you want, but we use domain name or abbreviations of that so we can easily find java source files. Regex pattern determines if a site is supported and at what level.

if you are editing a java file and compiling yourself you should be able just replace the class files and JD should utilise. Restart wouldn't be needed unless existing class was utilised (held in memory). Easiest solution would be to restart, if you're unsure.

Under the current (q and a above) if a update comes out it will auto replace your class file. If you would like to revert I would cut the original out of the directory and place it somewhere for safe keeping.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
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:19.
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.