• Resolved njitram

    (@njitram)


    Hi, I am trying to get the cover of books using the Google API, but so far the general information is filled in when pressing Fetch, but the cover is not, and the loading icon keeps on spinning. Any idea how to debug this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hello,

    I made the decision not to include covers from the Google Books API as the covers return are only 128px wide. So, to save myself from the support tickets complaining that the covers shown in multiple areas of the plugin are blurry, I decided not to fetch and use them. Plus, there is an issue with the API not returning a direct link to an image file, they are proxying the file URL to mask it.

    The icon spinning issue is most likely related to a JS error while parsing the data returned by the API. You can check your browser’s JavaScript console for more details.

    Thread Starter njitram

    (@njitram)

    Ah, I didnt realize that, it was one of the main features I was going for. But indeed, 128px is very small. Will create my own MU plugin to fix this I think by getting the image somewhere else.

    For the JS error, indeed it said:

    plugin.js?wp-mce-49110-20201110:119 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at parseShortcode (plugin.js?wp-mce-49110-20201110:119:18)
    at editor.wpSetImgCaption (plugin.js?wp-mce-49110-20201110:827:10)
    at tN. (plugin.js?wp-mce-49110-20201110:842:27)
    at c.fire (tinymce.min.js?ver=49110-20201110:2:197006)
    at tN.fire (tinymce.min.js?ver=49110-20201110:2:197532)
    at $w (tinymce.min.js?ver=49110-20201110:2:340139)
    at tN.setContent (tinymce.min.js?ver=49110-20201110:2:347647)
    at Object.success (rcno-reviews-google-books.js?ver=1.64.0:94:66)
    at fire (jquery.js?ver=3.6.1:3500:31)
    at Object.fireWith as resolveWith

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fetch Book cover’ is closed to new replies.