![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,340
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Some API changes in the current release (0.8.8) and the next one
API changes in 0.8.8
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Re: the API change in 0.8.9,
I hope this is not too dumb a question... I use various utilities in the 'Open With' plugin to tweak an epub's non-metadata items, e.g. toc.ncx, .xpgt, .css, <manifest> section of opf. Will I still be OK to continue as now? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,340
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The cached modification time and size will not be updated unless you call format_metadata with 'allow_cache=False'. Open_with can't do this because the plugin doesn't know when the user has finished. If you do, then fine. If you don't or if you do nothng, then the worst that will happen is that the cached values are wrong until the next time calibre is restarted.
Do remember, though, that when the new DB implementation hits (https://www.mobileread.com/forums/sho...d.php?t=140056), it is possible that there won't be any formats stored locally. Either your plugin(s) will stop working, or you must use the API to get a copy, let the user do whatever, then put it back. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Currently, I don't necessarily need Calibre to make my utilities work ('Open With' is a convenience) but I do need a physical epub to edit. Edit: I should add, these are personal utilities not released to the Calibre community. Last edited by jackie_w; 07-04-2011 at 05:18 PM. |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,340
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Flying with the seagulls in the clouds.
![]() One major goal of Kovid's work (perhaps *the* major goal) is to permit calibre's database not to be on a disc on the LAN. If he is successful (and it appears he will be), then there is no guarantee that *any* files in the library are available locally. No cover, no formats, no folders for authors/tities, no metadata.db, etc. Of course, most people will have their library on local storage. Problem is that you can't count on that. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,340
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#8 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
In fact the development will proceed in two stages. The first will be to write a much better designed (and faster) replacement for the current calibre database backend, that will be a drop in replacement (i.e. calibre should continue to work exactly as it does now, only faster). This new backend will be modularised in a way that will hopefully make it easy to add support for networked storage. |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,791
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Are these changes going to allow multiple instances of calibre using the database at the same time.
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes .
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Am I correct in thinking we'll also get (or be able to add) the option to change metadata from the content server interface? Perhaps also even permit running a format conversion from the CS? (I hate it when I'm remote, connected to the CS and realize I need another format, then have to log in with VNC to run Calibre, then return to the CS to get the newly converted book.)
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Eventually, yes.
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre's new plugin API | kovidgoyal | Plugins | 26 | 05-07-2011 02:43 PM |
New metadata API in 0.8 questions | kiwidude | Development | 38 | 04-18-2011 10:42 AM |
Goodreads has published an API | EricLandes | Calibre | 6 | 01-12-2011 04:39 PM |
Lead time for Kindle book release ahead of print release date - experiences? | Buran | Amazon Kindle | 6 | 05-04-2009 02:29 PM |
Ubook plugin api | Dopedangel | Reading and Management | 0 | 08-25-2007 06:54 AM |