mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-01 00:18:14 +01:00
Fix server crash on failed to extract epub image #3889
This commit is contained in:
parent
c735fea8ba
commit
d4ba8b9d9f
@ -56,7 +56,9 @@ async function extractCoverImage(epubPath, epubImageFilepath, outputCoverPath) {
|
|||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
||||||
await zip.close()
|
await zip.close().catch((error) => {
|
||||||
|
Logger.error(`[parseEpubMetadata] Failed to close zip`, error)
|
||||||
|
})
|
||||||
|
|
||||||
return success
|
return success
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user