Packagizer Rules are processed while the link is being processed and added to linkgrabber. Once the link is in list and you manually change/customize it, then rules no longer will be processed.
But you might wanna try to use a script for Eventscripter that does what you want to achieve. See here
https://board.jdownloader.org/showthread.php?t=70525 and ask mgpai for help. He's our master in Eventscripter.