This doesn't work for me.
The way I like filenames is Author - Title.
So, instead of the standard expression for extracting metadata which is
(?P<title>.+) - (?P<author>[^_]+)
I put:
(?P<author>[^_]+) - (?P<title>.+)
As a test, I put "Homer - The Iliad.epub"
and Calibre said that
Title: The
Authors: Homer
then I tried "Mark Twain - Tom Sawyer.epub"
and Calibre again interpreted it as the title being "Tom"
So it seems that it doesn't recognize more than one word as the title.
Last edited by irmar; 09-04-2020 at 07:16 AM.
|