View Single Post
Old 07-17-2016, 01:41 PM   #1
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Querying Metadata from outside the GUI?

I'd like to understand the calibre metadata structure better. If I know the path/to/library and a book's id within that library, is it possible to access metadata (read only) via a simple script using the Windows commandline method:
Code:
calibre-debug path/to/myscript.py
I've used some commands under the GUI in plugins, e.g.
Code:
db = self.gui.current_db
my_title = db.new_api.field_for('title', my_bookid)
but I don't know how to use those in a simple script.
jackie_w is offline   Reply With Quote