View Single Post
Old 05-15-2020, 09:20 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by tonibat View Post
Doesn't work for me.
I have my files in format: [<author>] <title>.ext, for example:
[John Doe] Mybook.pdf

and I've tried several patterns:

\[(?P<author>[^_]+)\]\s(?P<title>.+)

\[<author>\]\s(?P<title>.+)

as well as some smpler ones:

\[<author>\]\s<title>

None of them works. All result in
Title: [John Doe] Mybook
Author: Unknown
So, the author is not parsed, it is all put into the title.

I have Calibre 1.25 in Linux
Really? Calibre 1.25? I would strongly recommend upgrading.

I don't have a version of calibre that old to test with. But, using the test in the Adding books page of the preferences, the first one above works correctly.
davidfor is offline   Reply With Quote