ebook-meta <pdf> seems to work fine and the metadata is parsed correctly from the filename.
If I use the --to-opf option, the metadata is printed but the program segfaults.
If I add new ebooks, following error message appears:
Code:
title_ subtitle.[author].[publisher, pubdate].isbn.(tags).pdf
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/add.py", line 176, in add
mi = MetaInformation(OPF(opf))
File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 474, in __init__
raise ValueError('Empty file: '+getattr(stream, 'name', 'stream'))
ValueError: Empty file: /tmp/calibre_0.7.9_h61wSb_rm_worker/0.opf
The book gets added but all the metadata is empty and the title contains the filename without extension.
This is reproducible with any regex or filename (tested only with pdfs).
Tested with calibre 0.7.8 and 0.7.9 by bumping the gentoo ebuild.