![]() |
#1 |
Connoisseur
![]() Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
|
updating metadata externally
Is there anything that holds global.db and the various metadata.db databases open while the DR is in USB client mode connected to a PC? I'm thinking the Calibre plugin could be customized to use sqlite to provide the metadata when copying books over, cutting down on indexing time and allowing higher quality metadata (e.g. the image the user provided as the cover not the first page of the document).
|
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
|
Alternatively, is OPF file parsing on the timeline for future enhancements? Calibre can also output the book, a cover jpg, and a opf metadata file that would be much faster to parse when available...
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
ex-IRX developer
![]() ![]() ![]() Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
|
Certainly not. The SD card is unmounted from the devices OS before it is exported over USB so applications on the PC are free to access and alter the databases. This is what the (now defunct) Windows Companion software did for moving files and folders to retain annotation. Of course, the stability of the device can be affected by errors made in external applications.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,293
Karma: 529619
Join Date: May 2007
Device: iRex iLiad, DR800SG
|
Yeah, I think this goes back to even the iLiad days where you had to be in the Content Lister in order to connect to the PC, you couldn't have a document open. The general idea is that you don't want to let the device and the PC have access to the same data at the same time... bad things can happen. I'm pretty sure every firmware they've released since 2007 or so will make sure that the PC has exclusive access to any exported filesystem.
Last edited by Shaggy; 04-09-2010 at 04:24 PM. |
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
|
Oh- one more question I had was if the thumbnail blob has to be a .png or if .jpg is also allowed?
|
![]() |
![]() |
![]() |
#7 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
You can select the data from thumbnails table and and just use or save as .png file, no need for any modification. Code:
[inigo@inigo eReader]$ sqlite3 global.db SQLite version 3.6.20 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .schema thumbnails CREATE TABLE thumbnails ( file_id INTEGER PRIMARY KEY NOT NULL, thumb_data_mini BLOB, thumb_data_small BLOB, thumb_data_medium BLOB, thumb_data_large BLOB ); CREATE TRIGGER fki_thumbnails_file_id BEFORE INSERT ON thumbnails FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'insert on table "thumbnails" violates foreign key constraint "file_metadata" (file_id)') WHERE (SELECT file_id FROM file_metadata WHERE file_id = NEW.file_id) IS NULL; END; CREATE TRIGGER fku_thumbnails_file_id BEFORE UPDATE ON thumbnails FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'update on table "thumbnails" violates foreign key constraint "file_metadata" (file_id)') WHERE (SELECT file_id FROM file_metadata WHERE file_id = NEW.file_id) IS NULL; END; sqlite> select thumb_data_small from thumbnails where file_id == 2515; �PNG sqlite> EDIT: ok, I'm reading carefully now... you asked if jpeg could be used besides png. Sorry. Last edited by Iņigo; 04-10-2010 at 07:06 AM. |
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updating Metadata in Bulk | Turt99 | Calibre | 5 | 06-07-2010 03:19 PM |
Updating Metadata without and ISBN | herbycanopy | Calibre | 7 | 05-22-2010 01:16 AM |
Error on updating metadata in 0.6.44 | jomaweb | Calibre | 3 | 03-06-2010 12:05 PM |
Problem updating metadata (using mobi2mobi command line and gui) | whitearrow | Kindle Formats | 3 | 12-05-2009 07:07 PM |
Updating metadata on books already uploaded to the PRS700 | dpayment | Calibre | 1 | 01-23-2009 01:11 PM |