Update folder update logic to use new media path name

This commit is contained in:
Selfhost Alt 2022-04-22 22:29:38 -07:00
parent 5d12cc3f23
commit d88b20addd

View File

@ -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;
}