#1
|
|||
|
|||
Minor Packagizer additions
For Packagizer please add 2 new features to set package name and filename :
1) dynamic variable for source url 2) Regex support This would allow url to store saving information. A simple script could add information to the url. For example: Href is: **External links are only visible to Support Staff****External links are only visible to Support Staff** File name to save as: JD.Click.N.Load.25Mb.jd-singlelink-test.zip JD package name to use: jdownloader.org Run script on website to make href **External links are only visible to Support Staff****External links are only visible to Support Staff** JD Packagizer could parse out names using regex package name: <jd:sourceURL>.replace(/.+PackageName=/,"").replace(/?.+/,"") file name: <jd:sourceURL>.replace(/.+SaveAs=/,"").replace(/?.+/,"") The benefit is that user wouldn't have to install extra add-on flashgot or install extra service Click'n'load. Also most of the infrastructure already exists in Packagizer, so it wouldn't require tons of work. Last edited by Jiaz; 09.05.2012 at 15:40. |
#2
|
||||
|
||||
both already supported
you can add groups and then use the results in other parts Source: (.+) Filename: rightclick, dynamic variables
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
For Regex look at the end of "Filename" filed click the Icon.
|
#4
|
|||
|
|||
Quote:
But i'm having trouble getting it working, can you explain in a more step by step example? For example i am testing with this link: **External links are only visible to Support Staff****External links are only visible to Support Staff** I go to settings, packagizer, add new rule. On rule page, in bottom "then set" section, i check "package name" and for dynamic variables i only see: *date or time *original filename *original filename wildcard Can you give an example of how to parse out package name from a url link On rule page, in top "if the following conditions" section there are regex icons on right side of many options such as "file name" "hoster" "source". On bottom "then set" section i don't see any regex icon I am using: jdownloader 2 beta build date: fri may 11 17:36:09 java 1.7.0_04 |
#5
|
|||
|
|||
This is a good suggestion and i don't think it should be marked as [solved] because i don't see the option in current dev build. There isn't option for regex operations on original url.
It would be very good if website could pass settings to JD through URL parameters. It would be simple and safe and not require extra software installation, just setting up packagizer rules for URL parameters you want to use. |
#6
|
||||
|
||||
I don't believe it's in the best interest to pass package customiser rules into JD2 from browser. JD2 allows individual rules to be imported or exported as a manual process. These are user settings not website settings. If the given website would like to provide a custom rule they can, you can download it and import yourself. All rules allow standard wildcards or regular expression depending on user preferences (within package customiser rule editor or advanced setting). If websites want to send info about downloads for example, download links, predl password or archive password they can already via the click and load or via dlc frame works.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
Thread Tools | |
Display Modes | |
|
|