View Single Post
Old 02-03-2014, 06:16 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Adam23: In your example, that's not the sha1 hash of the absolute path, that's the ASIN (in this case, a fake ASIN created by Calibre from an UUID). The sha1 thing is now a fallback when the book doesn't have an ASIN set in its metadata, and used to be preceded by a star in the old format. Can't remember how the SQL-ized version on FW 5.x handles it.

Check the Kindle Collections plugin for the gory details.
There's surely some smaller and simpler, but older, pieces of code laying around that handle the basics, but the Kindle Collections Calibre plugin is the only one that's still maintained, and AFAIK, probably the most complete & accurate one.

Last edited by NiLuJe; 02-03-2014 at 06:22 PM.
NiLuJe is offline   Reply With Quote