From 354cefb9f48704b318ac2ebe2a77baa311d0a1bc Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 3 Jul 2022 15:04:41 -0500 Subject: [PATCH] Update:Update isFile flag on check scan data for library items --- server/objects/LibraryItem.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/objects/LibraryItem.js b/server/objects/LibraryItem.js index 7e371ac9..7390dbfa 100644 --- a/server/objects/LibraryItem.js +++ b/server/objects/LibraryItem.js @@ -316,6 +316,12 @@ class LibraryItem { hasUpdated = true } + if (dataFound.isFile !== this.isFile && dataFound.isFile !== undefined) { + Logger.info(`[LibraryItem] Check scan item isFile toggled from ${this.isFile} => ${dataFound.isFile}`) + this.isFile = dataFound.isFile + hasUpdated = true + } + if (dataFound.ino !== this.ino) { this.ino = dataFound.ino hasUpdated = true