Fix:Set full cover path for extracted covers & use temp fix to update books without a full cover path

This commit is contained in:
advplyr 2021-12-13 16:53:04 -06:00
parent d6ae50f89a
commit 57b464c867
3 changed files with 31 additions and 3 deletions

View file

@ -36,7 +36,7 @@ class CacheManager {
// Write cache
await fs.ensureDir(this.CoverCachePath)
let writtenFile = await resizeImage(audiobook.book.coverFullPath || audiobook.book.cover, path, width, height)
let writtenFile = await resizeImage(audiobook.book.coverFullPath, path, width, height)
var readStream = fs.createReadStream(writtenFile)
readStream.pipe(res)
}