Fix:Book re-scan properly checking if existing coverPath exists #2110

This commit is contained in:
advplyr 2023-09-18 16:43:43 -05:00
parent e56b8edc0a
commit 2c71324381

View File

@ -136,7 +136,7 @@ class BookScanner {
}
// Check if cover was removed
if (media.coverPath && !libraryItemData.imageLibraryFiles.some(lf => lf.metadata.path === media.coverPath)) {
if (media.coverPath && !libraryItemData.imageLibraryFiles.some(lf => lf.metadata.path === media.coverPath) && !(await fsExtra.pathExists(media.coverPath))) {
media.coverPath = null
hasMediaChanges = true
}