From d88b20addd145a8ba0fd11043930ad72820b8a6b Mon Sep 17 00:00:00 2001 From: Selfhost Alt <selfhost.alt@gmail.com> Date: Fri, 22 Apr 2022 22:29:38 -0700 Subject: [PATCH] Update folder update logic to use new media path name --- server/scanner/Scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scanner/Scanner.js b/server/scanner/Scanner.js index bf2dd695..25cf59a0 100644 --- a/server/scanner/Scanner.js +++ b/server/scanner/Scanner.js @@ -518,7 +518,7 @@ class Scanner { var altDir = `${itemDir}/${firstNest}` var fullPath = Path.posix.join(folder.fullPath.replace(/\\/g, '/'), itemDir) - var childLibraryItem = this.db.libraryItems.find(li => li.path !== fullPath && li.fullPath.startsWith(fullPath)) + var childLibraryItem = this.db.libraryItems.find(li => li.path !== fullPath && li.path.startsWith(fullPath)) if (!childLibraryItem) { continue; }