View Single Post
Old 07-01-2011, 10:12 PM   #59
Mr. X
Connoisseur
Mr. X is on a distinguished road
 
Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
Jumping in to this thread very late...

If you're already mucking about in erindexer could I kindly request a feature that's been on my todo list for about a year now?

I use Calibre to manage my books and add them to the DR's filesystem. Calibre's database generally has better metadata and much better cover images (pulled from Amazon etc) compared to the .epub or .pdf, but short of duplicating the indexing operation entirely from within calibre there's no way to get this data into global.db since inserting a new row with just the minimum columns (filename, directory_path, is_directory, filetype, title, author, tag) filled in didn't seem to leave the database in a happy state... And cramming pngs into the thumbnails table seemed even uglier from within python

My plan had been to modify the indexer to look for filename.metadata and filename.cover whenever it found filename.{pdf,epub,pdb} and insert that information into the database instead of opening up UDS for every book. That lets you have metadata (so sort by author works) without the super slow UDS indexing. This isn't tied to Calibre, you could generate these .metadata and .cover files on a PC from any source (including even doing what UDS does, just on a machine with a few GB of ram not a few MB...)
Mr. X is offline   Reply With Quote