JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 23.04.2017, 11:38
Goofolph
Guest
 
Posts: n/a
Default Select Highest Quality/Version in package

Hey, I often find myself downloading from sites that have multiple versions or qualities of the same file. I have them in the same package but rather than manually selecting which quality/version I want each time I would like an automated way to do this. Especially when doing this for hundreds of similar files at the same time.

For example, I have a package "some-random-file" containing files all following the pattern "some-random-file-{version}.ext". I'm using packagizer to group the files into the package. The regex (.+)-(\d+p)(.+), can match the files with \1 being the file basename/package and \2 being the version. I only want the one with the highest value for \2.

Is this possible with JDownloader 2?

P.S. Sorry if the example makes no sense.
Reply With Quote
  #2  
Old 23.04.2017, 11:47
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

not all plugins have settings, they just return all links you will then have to filter it out
package customer rules work on individual links, it can not compare one link to another within a or another package.

my advice is check settings > plugin for that site name, to see if there are settings for qualities and best.

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 23.04.2017, 12:08
Goofolph
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by raztoki View Post
not all plugins have settings, they just return all links you will then have to filter it out
package customer rules work on individual links, it can not compare one link to another within a or another package.

my advice is check settings > plugin for that site name, to see if there are settings for qualities and best.

raztoki
This specific site has no plugin. It's using directhttp for the links.
Reply With Quote
  #4  
Old 23.04.2017, 12:13
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

so you're adding the links yourself via deep analysis ?
if its done via decrypter, typically that does the analysing of qualities before adding of links.

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 23.04.2017, 12:21
Goofolph
Guest
 
Posts: n/a
Default

Yeah, I'm using deep analysis for this site. Without a plugin or decrypter for the site I was thinking of writing my own script to scan the sites and find only the qualities/versions I want but the site requires a log in and because I'm lazy I was hoping it could be done purely through JD.

Is it possible to export a list of the files/links that a external script/program could extract only the desired ones the insert them back to JD? Or possibly running a script through JD?
Reply With Quote
  #6  
Old 23.04.2017, 12:24
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

only solution for sites without plugins would be via the event scripter.
I don't believe there is a script for this at this time, you would need to create it yourself.
you would need to wait for all links to be added/processed before analysis.
then pick the quality you want/need within the package and remove(or disable) the other links.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #7  
Old 23.04.2017, 12:46
Goofolph
Guest
 
Posts: n/a
Default

Do you have a good resource for information of where to get started with the event scripter?
Reply With Quote
  #8  
Old 23.04.2017, 13:04
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

the event script editor has all the doco/help

also you can find examples outside of the ones provided in the event scripter button, here https://board.jdownloader.org/showthread.php?t=70525
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #9  
Old 23.04.2017, 13:08
Goofolph
Guest
 
Posts: n/a
Default

Thank you for the help! I'll get back to you if I have success or need any help.
Reply With Quote
  #10  
Old 23.04.2017, 13:20
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

alternatively if you know java its not hard to make a plugin that logins, fetches the links from a provided url and then determine best

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #11  
Old 23.04.2017, 13:40
Goofolph
Guest
 
Posts: n/a
Default

Finally a use for my java. Got a resource for that?
I'll look into both and see which I'll want to use.
Reply With Quote
  #12  
Old 23.04.2017, 15:09
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

http://jdownloader.org/knowledge/wik...nt/get-started

plugins are located within jd.plugins.hoster jd.plugins.decrypter

many thousands of working examples =]

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #13  
Old 24.04.2017, 12:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

If you need help or have questions with plugin development.
Either contact us via support@jdownloader.org or join chat (irc, freenode, #jdteam)

We can also add support for your site. Just provide some example links and we can check it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 04.05.2017, 06:51
Goofolph
Guest
 
Posts: n/a
Default

I just now have enough free time to look into creating my plugin. I'm looking through the source code and having trouble finding a good example for a template to start from and setup the plugin. Is there a good example for me to use?
Reply With Quote
  #15  
Old 04.05.2017, 09:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

You can use any of the thousands existing plugins. You can also join irc, freenode, #jdteam and ask for help there. We will help you/guide you as best as we can.
__________________
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 04:28.
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.