@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.
|