mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Merge pull request #1282 from lkiesow/google-books-https
Use HTTPS for Google Books Images
This commit is contained in:
commit
54b41b15c2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user