Quote:
...I would need a script that checks the package names and replaces or modifies some of them based on values specified...
|
Generally a quick and easy way is use 'Packagizer' extension, add a few rules and you are set. It is as simple as Find and Replace with RegExp. Script is more flexible, I'll give it a try, brb.
Quote:
a) if you find "Vol " replace with "V0"
-Shounin Yuusha wa Isekai wo Gyuujiru!-V01-Ch 1
&
-Kenja no Mago-V04-Ch 17 7
|
If <Pacakage Name>(.*?)(-vol\s)(\d{1}-)(.*?)
Then <PackageName> $1$-V0$3$4
don't forget [x]regex checkbox on the far right