View Single Post
Old 03-24-2025, 03:08 PM   #11
Incanus
Incanus
Incanus doesn't litterIncanus doesn't litterIncanus doesn't litter
 
Incanus's Avatar
 
Posts: 313
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
Question

I'm almost there; after checking "Book details" dialog/window on Calibre desktop, it turns out that the regular expression used by Calibre Sync to download on Library Format V2 is something like this:

Code:
{title} - {author:sublist(0,1,&)}_{uuid}
However, the title comes a little off, because of the prefix/sort order.

For instance, if the epub book is named "The book title" by author "Author" with uuid "the-uu-id-of-the-book", Calibre Sync downloads the book as:

Code:
The book title - Author_the-uu-id-of-the-book.epub
However, my "current" regular expression produces (using, say, Save to Disk) the following file name:

Code:
book title, The - Author_the-uu-id-of-the-book.epub
Any suggestions on how to improve/correct my regular expression in order to create a filename as Calibre Sync reads it?

Thanks in advance,
Incanus is offline   Reply With Quote