View Single Post
Old 08-29-2014, 09:44 AM   #10
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
@barsanuphe: Yup, nesting was broken in FW 5.4.2, and it hasn't resurfaced since.

I was thinking of using this with the Calibre Kindle Collections plugin, most likely by making it understand the json schema used by the plugin, since the plugin already takes care of a number of sanity checks (namely the uuid/ASIN handling of each book).

FWIW, the schema is as follows:

Code:
{
	"<CollectionName>@<Language>":
	{
		"items":
		[
			"<hash>"
		],
		"lastAccess": <epoch>
	}
}
So, as an example with a few different types of hash, that would look something like:

Code:
{
	"Apps@en-US":
	{
		"items":
		[
			"#B006VZUZV2^AZW2"
		],
		"lastAccess": 1344387337000
	},
	"Brandon Sanderson@en-US":
	{
		"items":
		[
			 "*c98b6567481d950dccad195379053e2539f1d75c",
			 "#12e45a36-0410-4caf-b32d-dc807713d8e9^EBOK"
		],
		"lastAccess": 1234567889976
	}
}
(The indentation is all mine, for formatting purposes only).

Last edited by NiLuJe; 08-29-2014 at 07:01 PM.
NiLuJe is offline   Reply With Quote