I have a lot of Japanese doujins and manga that I need to rename in order for them to match metadata correctly within in my lanraragi server. I do not really know how to explain what I want other than remove all bracketed text after the first instance of bracketed text.
Some examples of the files look like this
(COMIC1?13) [OrangeMaru (YD)] Skill Kyouka Kaikin + OrangeMaru Special 04 (FateGrand Order) [English] [N04h].zip
[Bad Mushrooms (Chicke III, 4why)] Mimimi (Toaru Kagaku no Railgun) [English] [Zaibatsu] [Colorized].zip
[Gatakomanchi (Komagata)] Manmaru Meido no Shihaisha-sama <<Goshujin-sama>> (Overlord) [English] [Digital].zip
[Aoin] The Escort and the Flower Girl (Final Fantasy 7) [English].zip
[Kakurenbo (Danimaru)] Batsu Game de Onee-san to | A Dare with an Onee-san (Amayakashi Onee-san ni Ochinchin o Torottoro ni Sarete Nukedasenai ~OneShota Sakusei Anthology~) [English] [RedLantern].zip
I would like to have only the authors name and publisher along with the tiles to be left after renaming, which would be the first instance of brackets.
The final product I would want to look like this
[OrangeMaru (YD)] Skill Kyouka Kaikin + OrangeMaru Special 04.zip
[Bad Mushrooms (Chicke III, 4why)] Mimimi.zip
[Gatakomanchi (Komagata)] Manmaru Meido no Shihaisha-sama.zip
[Aoin] The Escort and the Flower Girl.zip
[Kakurenbo (Danimaru)] Batsu Game de Onee-san to | A Dare with an Onee-san.zip
Basically I only need the text within the first [ ] and the title of the work but I cannot really figure out of way to do that easily can anyone help with this?