JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 10.06.2016, 02:13
GNIREENIGNE GNIREENIGNE is offline
DSL User
 
Join Date: Feb 2013
Posts: 39
Default Customizing Packagizer Rule

Hi. Is there any way to customize the predefined packagizer rule (or to create a custom one) for auto-creation of sub-folders? For example, I don't want a sub-folder to be created for everything...only for packages that contain a minimum number of files (say, 3 or more files).

Thanks!
Reply With Quote
  #2  
Old 10.06.2016, 03:38
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

No, package customiser rules do not work on package count. They only work on links that match rule. They have no feedback over existing package size.

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 10.06.2016, 04:09
GNIREENIGNE GNIREENIGNE is offline
DSL User
 
Join Date: Feb 2013
Posts: 39
Default

Thanks for the reply, raztoki.

Is there any way to write a custom rule for this, or, could this be something that could be implemented in a future release?

Either way, I appreciate the help.

Thanks!
Reply With Quote
  #4  
Old 10.06.2016, 04:15
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

at this stage, it wont be possible, because package customiser rules are applied before adding the link to linkgrabber tab. You could write a custom hack outside package customiser easier I would say, but I don't see Appwork or other supporters writing this ourselves.

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 10.06.2016, 04:22
GNIREENIGNE GNIREENIGNE is offline
DSL User
 
Join Date: Feb 2013
Posts: 39
Default

No worries. Thanks, again, raztoki.
Reply With Quote
  #6  
Old 10.06.2016, 04:33
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

The other maybe easier solution if you know Javascript would be use the Eventscripter. I'm sure it be possible within that framework. Maybe mgpai will notice this thread and give some feedback.

raztoki
__________________
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 10.06.2016, 05:57
GNIREENIGNE GNIREENIGNE is offline
DSL User
 
Join Date: Feb 2013
Posts: 39
Default

Unfortunately, no coding background. I could probably do it with an existing template to work with, but anything from scratch is not currently possible for me.

It's not a big deal, either way. The program is great, as-is, for sure.

Thanks, again.
Reply With Quote
  #8  
Old 10.06.2016, 07:56
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 949
Default

Minimum threshold to create subfolders and the option to count names or number of links for the same can be specified in Settings > Advanced Settings

LinkgrabberSettings: Subfolder Threshold
LinkgrabberSettings: Subfolder Count
Reply With Quote
  #9  
Old 10.06.2016, 08:14
GNIREENIGNE GNIREENIGNE is offline
DSL User
 
Join Date: Feb 2013
Posts: 39
Default

Great! It's working. Thanks a lot!
Reply With Quote
  #10  
Old 10.06.2016, 08:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,515
Default

Thanks to mgpai for pointing to those advanced settings
@GNIREENIGNE: thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 10.06.2016, 09:32
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

hmm there you go I learnt something new ;l

I assume that only work on default rule?

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

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

that works on every subfolder rule, as this defines how the subfolder rule pattern is evaluated. we could also include it as additional option direclty into pattern if someone needs finer customization
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 10.06.2016, 10:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

ok.
__________________
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 19: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 - 2020, Jelsoft Enterprises Ltd.