From 2c7132438158808aae9f1b9e43039356a2591c11 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 18 Sep 2023 16:43:43 -0500 Subject: [PATCH] Fix:Book re-scan properly checking if existing coverPath exists #2110 --- server/scanner/BookScanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scanner/BookScanner.js b/server/scanner/BookScanner.js index c5916b25..ed905a03 100644 --- a/server/scanner/BookScanner.js +++ b/server/scanner/BookScanner.js @@ -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 }