mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-09 12:12:43 +02:00
New data model Book media type contains Audiobooks updates
This commit is contained in:
@@ -36,6 +36,10 @@ class CacheManager {
|
||||
// Write cache
|
||||
await fs.ensureDir(this.CoverCachePath)
|
||||
|
||||
if (!libraryItem.media.coverPath || !await fs.pathExists(libraryItem.media.coverPath)) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
|
||||
let writtenFile = await resizeImage(libraryItem.media.coverPath, path, width, height)
|
||||
if (!writtenFile) return res.sendStatus(400)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user