Just change the setting in the Advanced Configuration dialog*. By default it expects Title - Author, not Author - Title, which explains why they're getting swapped.
(?P<author>.+) - (?P<title>[^_]+)
should do the trick.
*the Configuration dialog is accessed through the small hammer icon to the right of the search field
Quote:
Originally Posted by iain_benson
I'm currently using Calibre on my Mac to manage my book library and transfer it to my PRS-505.
I've just recently got a selection of PDF files which I want to use on it, but they have pretty screwy metadata ... if I just import them directly into calibre some end up with author and title swapped and some have complete garbage in them.
The files are all named as "<author> - <title>.pdf", so I am thinking the best solution would be to find a CLI PDF metadata editor so I can do do a batch re-tag on them, assuming there is any such thing on the Mac ... or can I force calibre to set metadata based on filename rather than content?
Once I've got this sorted, is it best to leave them all as PDFs, or should I convert them all to LRF?
Ta
Iain
|