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 committed 2021-12-13 16:53:04 -06:00
1 parent d6ae50f89a
commit 57b464c867
3 files changed
+31 -3

No files matched your search

+1 -1
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)
}