JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09.05.2012, 10:54
her34 her34 is offline
JD Alpha
 
Join Date: May 2010
Posts: 24
Default 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.
Reply With Quote
  #2  
Old 09.05.2012, 15:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,289
Default

both already supported
you can add groups and then use the results in other parts

Source: (.+)
Filename: rightclick, dynamic variables
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 09.05.2012, 17:01
Xavyer
Guest
 
Posts: n/a
Default

For Regex look at the end of "Filename" filed click the Icon.
Reply With Quote
  #4  
Old 12.05.2012, 06:41
her34 her34 is offline
JD Alpha
 
Join Date: May 2010
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
both already supported
you can add groups and then use the results in other parts

Source: (.+)
Filename: rightclick, dynamic variables
Hi, it's great that everything is already there.
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



Quote:
Originally Posted by Xavyer View Post
For Regex look at the end of "Filename" filed click the Icon.
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
Reply With Quote
  #5  
Old 19.05.2012, 01:10
wuuqgrcv
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #6  
Old 19.05.2012, 04:21
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

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. :]
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 13:41.
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.