Hi thanks for the help with the previous problem. Here is another one that i'm working on. I'm working with hundreds of ebook files and they have to be named in particular sequence in order for them to import properly into calibre (an ebook library management tool). I have found it easier to first prepare the files pre-import rather than sort and separate & change the import script with each group.
The correct sequence i'm looking for is:
George RR Martin - Game of Thrones.epub
Martin, George RR - Game of Thrones.epub
Often the title and author are backwards.
Game of Thrones - George RR Martin.epub
Game of Thrones - Martin, George RR.epub
I have created a button and i use this script which works:
Rename REGEXP PATTERN="(.) - (.)(..*)" TO="\2 - \1\3" AUTORENAME
@nodeselect
MY PROBLEM: often some ebooks have version information which i want to remain in place...
Game of Thrones - George RR Martin (v1.0).epub
or
Game of Thrones - Martin, George RR (v5.01).epub
When I use this script it does this:
George RR Martin (v1.0) - Game of Thrones.epub
or
Martin, George RR (v5.1) - Game of Thrones.epub
When this is the actual result I want.
George RR Martin - Game of Thrones (v1.0).epub
or
Martin, George RR - Game of Thrones (v5.1).epub
and sometimes the ebooks have series information that needs to stay in place:
which this script moves the version info also which i dont want:
(.) - (.) - (.)(..)
\3 - \1 - \2\4
looking for
From:
Game of Thrones - Ice & Fire 01 - George RR Martin (v1.01).epub
To---:
George RR Martin - Ice & Fire 01 - Game of Thrones (v5.0).epub
any help would be appreciated: