JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 18.06.2016, 05:46
BWEL BWEL is offline
JD Alpha
 
Join Date: Feb 2016
Location: Toronto, ON
Posts: 24
Exclamation Packagizer Doesn't Recognize Underscore Anymore

Hello,

I have set up the following packagizer rule:

if the following
1) Package Name: (.*)(_)(.*) regex enabled

2) Package Name is: WordPress DIY: Freelance/Independent Website [repost] / AvaxHome

3) JDownloader Renaming Rule Autmatically converts it to:
WordPress DIY_ Freelance_Independent Website [repost] _ AvaxHome

then set
4) Package Name: <jd:orgpackagename:1> <jd:orgpackagename:3>

Now according to my rule I should receive the package name without one of the underscores, but I don't.

This is the primary rule and I have disabled all other rules. Now if I change for example my rule to (.*)(Freelance)(.*) the package name gets renamed automatically removing the word Freelance from the name, but for some reason it will not recognize the underscore. In the past it used to do this quite well, but with the new updates, it seems like I cannot mess with the underscore in packagizer. Can someone try to fix it so I can have packagizer trim/adjust package names without restrictions? Thanks

P.S. Can I modify the way JDownloader renames special characters?
Reply With Quote
  #2  
Old 20.06.2016, 19:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

The char replacement of / takes place AFTER the packagizer. All invalid chars are replaced at the end. That's why it does not work.

At the moment there is no way to customize the renaming of special chars as all invalid chars (largest set of all unknown invalid chars is used, for example : /...).
What exactly do you have in mind? What are you trying to achieve?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 21.06.2016, 02:27
BWEL BWEL is offline
JD Alpha
 
Join Date: Feb 2016
Location: Toronto, ON
Posts: 24
Default

Thank Jiaz for the update. I am simply saying that my packagizer rules about replacing the underscore were working just fine before the recent updates.

I have in a place a set of rules in packagizer that are simply supposed to clean up continer names, such as remove the undersore, clean double whitespaces and so on.

My packagzier rules are supposed to clean up the underscores:
3 regex rules: (.*)(_)(.*) one after another:

are supposed to convert the automatically cleaned up JDownloader converted name:
from: WordPress DIY_ Freelance_Independent Website [repost] _ AvaxHome

to: WordPress DIY Freelance Independent Website [repost] AvaxHome

so that other rules may remove clean it up even further, such as remove [repost] and AvaxHome and so on.

Until a couple of weeks ago it was working just fine, whereas now the underscore rules don't work anymore.
Reply With Quote
  #4  
Old 22.06.2016, 17:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I will do some testing and get back to you
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 22.06.2016, 18:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I did several testing and could not make it work. It is because the replacement takes place at the end. I will update JDownloader so it happens earlier during processing, then your rule will work fine again

update will be live in 5 mins

Maybe it worked before because another rule was matching. The replacement happens at several points in code and depending on your rules/what plugins/how you add the links, this replacement could have happened before the packagizer rule

With next core update it should work fine again
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 30.06.2016, 15:05
BWEL BWEL is offline
JD Alpha
 
Join Date: Feb 2016
Location: Toronto, ON
Posts: 24
Default

Thank you Jiaz I can now confirm that my packagizer is able to replace the underscores, however the avxhome.in plugin is not working correctly. It is not getting the nitroflare links anymore at least on a couple of drag and drops I did, instead it only captures images files from that particular post.

Also on a second note in Linkgrabber Rules I see a new line called:
Code:
"packageNamePattern" : null
Any instructions on how that should work? Is just a regex line or are there specific rules?

Thanks
Reply With Quote
  #7  
Old 30.06.2016, 15:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

It is a regex that can be used to give all results from that deepdecrypt a custom package name. In future will also be able to specify regex to tell where to look for links in html source (to reduce false positive results)
__________________
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 16:54.
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.