Accessing filepath from Metadata Plugin
Does anybody know how to access the Filepath or even the BookID from within the Identify class as part of a metadata plugin?
I noticed the `calibre.utils.filename` but couldn't find a class to return the current path of the current book sent via the metadata thread.
Is there a quick way to get it? Or do I need to include the DB, run a search on the book title to get the book ID, and then do a search on the file paths?
Just wondered if there was an easy way to do this. My plugin is nearly complete.
Just need the file location for each metadata submission as the worker cycles through each title to finish it off.
|