Accessing book files from metadata plugins is *completely unsupported*. Your plugin is likely to break in all sots of unexpected ways. If you really want to fetch metadata based on book contents, then rather than writing a metadata source plugin write a user interface plugin, that can access the book files and do whatever it likes using the database APIs.
|