Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cmeeren

    (@cmeeren)

    I’ll look into it. Could you give me an example of a book on GR without cover image?

    Thread Starter areilsutton

    (@areilsutton)

    This one should work:
    https://www.goodreads.com/book/show/16075331-the-most-human-human

    Here is an example of what’s happening: https://www.areilsutton.com

    The Currently Reading, which only ever has a handful of books, always displays book covers when they’re available.

    The Planned Reading, which has 15 random from 2200 total books, seems to rarely if ever display book covers even though nearly all of them are available.

    I always load the blog with /?force_gr_progress_update because otherwise I get matrix errors whenever I’ve recently finished a book or added a new one to the Currently Reading list.

    Plugin Author cmeeren

    (@cmeeren)

    Oh, I see what the problem is. The plugin is getting the cover URLs from the bookshelf’s RSS feed. This feed is unfortunately capped at 100 books (from Goodreads’ side, nothing I can do), so the plugin will only find 100 of the cover images (I have no idea about the sorting it uses – it might be entirely random, which means that each time you call it with ?force_gr_progress_update, different covers might be added to the cache).

    While it would be possible to fetch the cover image from the website of each displayed book individually, this is a suboptimal solution that requires several webpages to be downloaded (the covers aren’t displayed in the API results from Goodreads, so I either have to get all of them using the shelf’s RSS feed like now, or download the entire HTML of each book’s Goodreads page and parse that, which is very slow – I’ve tested).

    So I’m sad to say that unfortunately, there is no easy solution to your problem. My suggestion is simply to show shelves containing fewer than 100 books. You could, for example, create additional shelves on Goodreads for the purpose of displaying on the blog. Or, as I do, use the main shelves (to-read/currently-reading/read) for displaying on a blog, and then create another to-read shelf to place all the other hundreds or thousands of books. In other words, prioritize what you actually want on your blog (inasmuch as selecting 100 books for each shelf is prioritizing). ??

    • This reply was modified 8 years, 2 months ago by cmeeren.
    • This reply was modified 8 years, 2 months ago by cmeeren.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting default cover image?’ is closed to new replies.