diff --git a/server/providers/GoogleBooks.js b/server/providers/GoogleBooks.js index 94965f1e..69cc392e 100644 --- a/server/providers/GoogleBooks.js +++ b/server/providers/GoogleBooks.js @@ -20,7 +20,8 @@ class GoogleBooks { let cover = null // Selects the largest cover assuming the largest is the last key in the object if (imageLinks && Object.keys(imageLinks).length) { - cover = imageLinks[Object.keys(imageLinks).pop()] || null + cover = imageLinks[Object.keys(imageLinks).pop()] + cover = cover?.replace(/^http:/, 'https:') || null } return {