#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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. :] |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
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. :] |
#5
|
|||
|
|||
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? |
#6
|
||||
|
||||
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. :] |
#7
|
|||
|
|||
Do you have a good resource for information of where to get started with the event scripter?
|
#8
|
||||
|
||||
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. :] |
#9
|
|||
|
|||
Thank you for the help! I'll get back to you if I have success or need any help.
|
#10
|
||||
|
||||
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. :] |
#11
|
|||
|
|||
Finally a use for my java. Got a resource for that?
I'll look into both and see which I'll want to use. |
#12
|
||||
|
||||
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. :] |
#13
|
||||
|
||||
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 |
#14
|
|||
|
|||
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?
|
#15
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|