#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
I will do some testing and get back to you
__________________
JD-Dev & Server-Admin |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
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 Thanks |
#7
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|