View Single Post
Old 07-02-2011, 07:18 AM   #62
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Iņigo View Post
Hi,

I've been some days away for work reasons.

Anyway tonight I've rewritten some parts of the patch.
Now the covers are stored as <sd_card>/System/.covers/size/xx/file_id.png
where:
size = thumbnail size: "small" or "medium"
xx = file_id % 256, in hexadecimal
file_id = book identifier index inside global.db

This way we could provide a two way conversion between "classic" format (with thumbnails inside the db) and new format.

Now I have to complete the code to handle file deletion and finish the migration tools.

Best regards,
Iņigo
That is a brilliant move, using the unique file_id from global.db. I pushed a solution based on your previous code to BitBucket a few days ago. But this will make it more easy I guess.
Mackx is offline   Reply With Quote