#1 2010-08-12 05:16

Cruentusa
Member
From: Sweden
Registered: 2010-08-12
Posts: 2

Set content of "[]" brackets as prefix

I use renamer to rename a lot of manga but I have a problem. When the renaming is done I get somthing that looks like this "Manga name [Manga author].cbr"
ex. "Aqua Bless [Yamatogawa].cbr" but I want the author to come first in the filename so it looks like this "[Yamatogawa] Aqua Bless.cbr" at the moment I'm doing it manually but i takes forever to rename 1k+ files.

Last edited by Cruentusa (2010-08-12 05:17)

Offline

#2 2010-08-12 07:33

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Set content of "[]" brackets as prefix

Hi Cruentusa, welcome!

Cruentusa wrote:

I use renamer to rename a lot of manga but I have a problem.
When the renaming is done I get somthing that looks like this
"Manga name [Manga author].cbr"
ex.
"Aqua Bless [Yamatogawa].cbr"
but I want the author to come first in the filename so it looks like this
"[Yamatogawa] Aqua Bless.cbr"
at the moment I'm doing it manually but i takes forever to rename 1k+ files.

Luckily you use ReNamer who can do this for you at easy.
There are several ways i could imagine.

One is this:

FROM:
"Manga name [Manga author].cbr"
TO:
"[Manga author] Manga name.cbr"
DO:
Rule
1) Rearrange: Split by delimiters " [", New pattern "[$2 $1" (skip extension)


Explanation:
This will split your string at the  " [" into two parts:
Part1: "Manga name" ..... accessible by $1
Part2: "Manga author] ... accessible by $2

Now rearrange this in the output, use first Part2: $2, then Part1: $1.
At last add an leading "[" because the delimiters are dropped by this rule, so use: "[$2 $1" as "New Pattern"


You may also use an RegEx for this issue:
1) RegEx: Replace expression "(.+) (\[.+)" with "$2 $1" (skip extension)
or an PascalScript if you need more complex actions.

But the Rearrange Rule is special made for things like your request.

HTH? big_smile

Happy manga reading...


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2010-08-12 17:10

Cruentusa
Member
From: Sweden
Registered: 2010-08-12
Posts: 2

Re: Set content of "[]" brackets as prefix

Thank you, didn't know a beta had been released with a rearrange rule but I would never have figured out how to use it.

It works perfectly thank you again.

Offline

Board footer

Powered by FluxBB