#11 Yesterday 15:46

Digidoc
Member
Registered: 2026-03-06
Posts: 9

Re: Renaming ebook files

Thank you for helping. I took 500 folders containing 1154 books. 1 file did not convert due to excessive file name length. The ones with 2 parts or 3 parts to the author names work great. Those with a single part or with 4 parts are the ones which fail. Here are examples of failures:

(Graf), Leo Tolstoy-The Death Of Ivan Ilyich_And, Master An.epub
A Time For War, A Time For Peace - Keith R. A. Decandido.epub
Agincourt_Henry V And The Battle That Made England - Juliet R. V. Barker.epub
Apocalypse - Keith R. A. Decandido.epub
Articles Of The Federation - Keith R. A. Decandido.epub
Diplomatic Implausibility - Keith R. A. Decandido.epub
Doctor Who_Dying In The Sun - Jon De Burgh Miller.epub

Offline

#12 Today 04:58

Digidoc
Member
Registered: 2026-03-06
Posts: 9

Re: Renaming ebook files

I found that the 1 word author is generally wrong. When I open the file with Calibri, I see the rest of the author name and can correct it. There are a few exceptions, but please do not spend time trying to solve this issue. What does seem to be needed is a way to handle 4 tokens as a part of the author name. This could be initials for full names. An example would be George R. R. Martin.

Offline

#13 Today 13:04

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,525

Re: Renaming ebook files

This single rule will handle any number (two or more) of author tokens:

Replace expression "^(.*)\s+-((?:\s+\S+)+)\s+(\S+)$" with "$3,$2-$1" (skip extension)

Regarding the one failing due too very long path, you should check out ReNamer 7.9 with built-in support for handling long paths.

Offline

Board footer

Powered by FluxBB