View Single Post
Old 05-29-2024, 04:25 PM   #1
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
parsing calibre metadata

I'm writing a SAX json parser for "metadata.calibre" files, intended for devices with not enough ram to decode the entire file at once.

I have a couple of those metadata files. In both of them the fields for each book in the array are 1) same fields and 2) in the same order.

Quote:
local all_fields = {
"publisher",
"title_sort",
"author_sort",
"link_maps",
"identifiers",
"mobi-asin",
"cover",
"db_id",
"book_producer",
"pubdate",
"series",
"thumbnail",
"lpath",
"author_sort_map",
"application_id",
"series_index",
"authors",
"comments",
"rating",
"rights",
"publication_type",
"mime",
"languages",
"size",
"tags",
"timestamp",
"uuid",
"last_modified",
"user_categories",
"user_metadata",
"title",
}
Can I assume this holds true for every metadata file generated by calibre? Does the order might differ on some cases?

I wish this is true because I'm lazy as hell
pazos is offline   Reply With Quote