View Full Version : Add books - Meta Data format


wwaldo
03-17-2010, 11:22 AM
I have a bunch of PDF books i am trying to add to my Calibre library. The title of the books are of three natures

Author - Seriers - Book name
i.e. - Will Greenway - Reality's Plaything 01 - Reality's Plaything.pdf

Author - Book name
i.e. - Will Greenway - Reality's Plaything

Book name - Author
Reality's Plaything - Will Greenway

What are the file name Meta data settings in preferences to get the right results from an import.

i.e. Author - Title
Will Greenway - Reality's Plaything
(?P<author>.+) - (?P<title>[^_]+)

Thanks.

Starson17
03-17-2010, 04:48 PM
I have a bunch of PDF books i am trying to add to my Calibre library. The title of the books are of three natures

Author - Seriers - Book name
i.e. - Will Greenway - Reality's Plaything 01 - Reality's Plaything.pdf

Author - Book name
i.e. - Will Greenway - Reality's Plaything

Book name - Author
Reality's Plaything - Will Greenway

What are the file name Meta data settings in preferences to get the right results from an import.

i.e. Author - Title
Will Greenway - Reality's Plaything
(?P<author>.+) - (?P<title>[^_]+)

Thanks.

There isn't one that will do all 3. The last one "Book name - Author" is the same as the penultimate one "Author - Book name" as far as Calibre can tell.

I use for the first two:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)?\s*-\s*)?(?P<title>.+)

wwaldo
03-17-2010, 06:38 PM
Actually that code u posted works well for me, thanks for the help.