mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-20 15:41:33 +01:00
Use HTTPS for Google Books Images
The API for Google Books will return HTTP image URLs when matiching any books using it as a search provider. In a secure environment, this causes browser warnings. All Google image links support HTTPS and we can safely switch to HTTOS to avoid these warnings.
This commit is contained in:
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user