Merge pull request #1282 from lkiesow/google-books-https

Use HTTPS for Google Books Images
This commit is contained in:
advplyr
2022-12-17 17:59:44 -06:00
committed by GitHub

View File

@@ -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 {