|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Epub plugin dev
If I open the metadata editor and click on the "set the cover from the selected format" button, it correctly extracts the cover image and the thumbnail shows when browsing the library. If I re-import the modified epub, it finds the cover image just fine... which leads me to believe it's a priority/order of operation type issue. When does Calibre attempt to extract the Epub cover in relation to import plugins? If it happens before any import plugins, is there a way to force Calibre to repeat the cover extraction routine from within my plugin? It's a picky little detail, but I'd rather not have to click that "set the cover from the selected format" button every time I import an epub. Last edited by DiapDealer; 10-19-2010 at 11:36 AM. |
|
|
|
|
|
#2 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
What does your plugin do to the ePub?
__________________
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Quote:
![]() Suffice it to say, that the epub's cover is unavailable when the import process begins (and that appears to be when Calibre's Epub metadata reader attempts to extract the cover). For whatever reason. Let's say it's because there is no cover. After my plugin runs, the cover is available (let's say it's because my plugin inserts a cover), but it's too late in the import process for Calibre to retrieve it properly. I know my plugin does this correctly because I can click that "set cover from selected format" button, and it works. I just need to know what code is behind that button... and can I simulate "clicking" that button from my plugin? Or is it possible to prioritize my plugin to run before Calibre's built-in 'Read EPUB metadata' plugin? |
|
|
|
|
|
|
#4 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,515
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's no way to do it from within the plugin, at least at the moment. Open a ticket for it, and I'll see if I can setup a hook for it.
I'm travelling this week so it will be a little while before I can look at it.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Thanks for the response. It's no biggie, but I'll open a ticket and look for it sometime in the future.
![]() EDIT: Ticket created (#7245) Last edited by DiapDealer; 10-20-2010 at 08:54 AM. Reason: Added ticket number |
|
|
|
|
|
#6 | |
|
Kindle Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 1818
Join Date: Jul 2010
Location: San Diego, CA
Device: Kindle 3G Graphite, Kindle Fire
|
Quote:
Thanks, DiapDealer! |
|
|
|
|
|
|
#7 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 378
Karma: 6476
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi
|
And Thanx TomF ! I missed that
|
|
|
|
|
|
#8 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 738
Karma: 1012257
Join Date: Jun 2008
Location: Near Seattle
Device: kindle1, K3, K3G (thanks MR), iTouch, Kindle Touch
|
Not sure anyone realizes how fabulous these plugins are. They eliminate the need to install both python and pycrypto. Calibre does it all. Profound thanks to DiapDealer.
A couple of easy steps and you are there.
__________________
Liberate all ebooks! |
|
|
|
|
|
#9 | |
|
Fear The Turtle!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 353
Karma: 995136
Join Date: Sep 2009
Location: Margaritaville
Device: Kobo Aura HD, Kindle Paperwhite, K3
|
Quote:
Also, once a certain plugin is added, do I just add the book to Calibre & the plugin does it's magic? Thanks for any help/direction you can provide!
|
|
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 6566
Join Date: Aug 2008
Location: New Plymouth - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
|
The plugins in question should be listed under File type plugins.
See the included readme files to find how to configure them. Once configured, they should do their work when you add a book to calibre. |
|
|
|
|
|
#11 |
|
Fear The Turtle!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 353
Karma: 995136
Join Date: Sep 2009
Location: Margaritaville
Device: Kobo Aura HD, Kindle Paperwhite, K3
|
Thanks for the info. I've been playing around with it for a little while now & I finally figured it out.
|
|
|
|
|
|
#12 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 613022
Join Date: Aug 2010
Location: New Zealand
Device: kobo glo, kobo touch (dead), kindle touch, android phone
|
Quote:
Thanks
|
|
|
|
|
|
|
#13 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,840
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,515
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you're welcome
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#15 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,966
Karma: 213930
Join Date: Oct 2009
Location: Ipswich, Queensland, Australia
Device: Kindle 2, Sony PRS 650, Ipod Touch
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any web-to-epub plugin for internet browser? | bthoven | ePub | 7 | 07-10-2011 05:14 AM |
| Installing dev environment | bran | iRex Developer's Corner | 13 | 09-28-2010 05:43 PM |
| New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
| iLiad /dev/ttyS1? | -Thomas- | iRex Developer's Corner | 0 | 05-04-2008 07:16 PM |