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
commit 54b41b15c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {