02-16-2011, 02:18 AM | #1 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
[Covers Plugin] Goodreads Covers **Deprecated**
As of Calibre 0.8 this plugin is deprecated and will no longer work. Instead you should use the replacement Goodreads Metadata Source plugin which is compatible with Calibre 0.8 onwards.
This plugin allows Calibre to download book covers from goodreads.com. Calibre currently comes with plugins for a number of cover sources such as OpenLibrary.org and most recently Amazon. Adding this plugin can potentially increase the likelihood of getting a cover for your book. It is the second of a Goodreads trinity of plugins I will publish in this forum. The other two are for Goodreads metadata downloads and shelve syncing. Main Features of v1.1.1
Special Notes:
Installation Notes:
Version History: Spoiler:
Last edited by kiwidude; 05-06-2011 at 06:36 PM. Reason: Plugin deprecated message |
02-16-2011, 09:43 AM | #2 |
New Leaf Turner
Posts: 260
Karma: 1026664
Join Date: Sep 2010
Location: Hadestown
Device: Kobo Glo
|
Nice indeed.
I've only tested it for a couple books, but the availability of covers where there were none speaks for itself. Thank you! |
Advert | |
|
02-20-2011, 06:14 PM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2011
Device: Kindle Voyage
|
FYI, this plugin problems with some ISBN and when that happens it blocks other plugins further down the list such as the official openlibrary.org plugin from providing cover! Note that the official cover download plugins doesn't do this, if they fail the next plug gets to tru.
Unfortunately there doesn't appear to be a way to rearrange the order, it always runs them in alphabetical order. The error message it gives are: ERROR: Bad cover: The cover is not a valid picture Example ISBN: 9780345379092 The Amazon Covers plugin fails with what appears to be an internal error, but if it gets the chance the openlibrary.org Covers will provide the cover. It's hard to tell but I think it probably removes more covers than it adds until this is fixed. |
02-20-2011, 07:24 PM | #4 | |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
The issue is the Goodreads website having missing images with broken links. For the "correct" pages for books with no cover they have a slightly different div structure and link to a "blank cover" type of image - that situation I can detect and handle fine. However for other books such as that ISBN you sent me they basically have a broken link. There is no difference I could see from the web page itself when scraping as to whether the image linked to exists or not. I had hoped that this was a "rare enough" situation to not try to bother with at least until Kovid had made changes to the API but perhaps that is not the case. Right now the way the API works is that a plugin is just responsible for returning a URL to an image. Later code in Calibre then takes responsibility for downloading the image, it assumes the link is a valid one and hence the "bad picture" message you get when it tries to convert the output into an image such as you get when parsing this image url from that ISBN above in Goodreads: http://photo.goodreads.com/books/1173213624l/258872.jpg My point being that the only thing I could do would be in the plugin to attempt to download the cover myself. I don't know if the response header would give me an error code to save me downloading the content, I'll look into that. Why I didn't do this previously was that it means an additional web call which will slow the downloads down further, and worst case for valid images it means they get downloaded twice (as I have no way of passing the image to the Calibre code, just the link to it). I didn't realise that Goodreads returning a "dud" link would prevent other plugins from returning valid ones. That does make it more of a priority to look into. |
|
02-20-2011, 08:57 PM | #5 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1 Released
I've just pushed up a new version of this plugin on the first post to address the issue mentioned by tlindgren above.
The plugin will now better handle the situation of Goodreads having broken image links on their website and correctly return no url to Calibre rather than an invalid one. |
Advert | |
|
02-22-2011, 05:40 PM | #6 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2011
Device: Kindle Voyage
|
Quote:
I check that URL you gave and it's clearly Goodreads and/or AmazonS3 fault, they're sending back HTTP/1.1 OK, the only indication that it's bogus is the zero length, nasty. I have to thank you for solving that issue, several of your plugins are immensely useful. |
|
04-13-2011, 07:08 AM | #7 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.1 Released
Change in this release:
|
04-16-2011, 05:15 PM | #8 |
Guru
Posts: 776
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Paperwhite 11th Generation
|
Can't seem to get this plugin to work. Running Caibre 0.7.55 in Windows. Plugin installs but when I try download covers it doesn't show in the list of sources.
|
04-16-2011, 05:44 PM | #9 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Are you using the tweak to preview calibre 0.8 by any chance? As this plugin is not yet compatible with that. I will be posting a new version soon on this thread.
|
04-16-2011, 08:05 PM | #10 |
Guru
Posts: 776
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Paperwhite 11th Generation
|
Yes I am, I didn't think it would matter but I guess it does.
Thanks! |
04-16-2011, 08:27 PM | #11 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
It does indeed, neither this or the goodreads metadata plugins will work in their current state in 0.8 with the considerable changes Kovid has made to that part of Calibre.
I didn't realise until I started looking into this tonight but the new version of the plugin will actually combine both metadata and covers into one plugin. I'm hoping to put an initial version up tomorrow. |
04-17-2011, 04:22 PM | #12 |
Guru
Posts: 776
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Paperwhite 11th Generation
|
Nice! Let me know if you need any volunteers for testing
|
04-17-2011, 04:36 PM | #13 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
A nice offer thanks. Don't suppose you run from source by any chance? As Kovid has been nice enough to make a few tweaks to things as this is coming along but you will likely need to be running from source to give it a go until the next Calibre release.
Any volunteers, PM me an email to send you a zip in the next day or so. Functionally the metadata downloading is all working now, I've just started work on the custom genre->tags mapping configuration. So it should be ready tomorrow for any willing helpers... |
04-17-2011, 05:09 PM | #14 |
Guru
Posts: 776
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Paperwhite 11th Generation
|
No I don't run from source, just the normal Windows installer.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Goodreads | kiwidude | Plugins | 775 | 10-05-2024 02:27 PM |
[GUI Plugin] Copy book covers as Standby images (Sony/Kindle/Nook) | jackie_w | Plugins | 136 | 06-18-2020 03:27 AM |
Calibre plugin - Copy book covers to use as Standby images (PRS600/x50) | jackie_w | Sony Reader | 39 | 06-18-2016 07:06 PM |
[Metadata Download Plugin] Goodreads Metadata **Deprecated** | kiwidude | Plugins | 30 | 04-23-2011 02:10 PM |
Covers, covers and damn statistics (wait, I got that wrong). | Moejoe | Writers' Corner | 86 | 11-29-2010 08:34 PM |