From b330030f5092a63634843d8b2bb5cd58edaa5607 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 9 May 2022 18:40:54 -0500 Subject: [PATCH] Fix:Ignore file metadata updates to metadata.abs files --- server/objects/LibraryItem.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/objects/LibraryItem.js b/server/objects/LibraryItem.js index 74d13792..08ace731 100644 --- a/server/objects/LibraryItem.js +++ b/server/objects/LibraryItem.js @@ -288,7 +288,6 @@ class LibraryItem { // FileMetadata keys ['filename', 'ext', 'mtimeMs', 'ctimeMs', 'birthtimeMs', 'size'].forEach((key) => { if (existingFile.metadata[key] !== fileFound.metadata[key]) { - // Add modified flag on file data object if exists and was changed if (key === 'mtimeMs' && existingFile.metadata[key]) { fileFound.metadata.wasModified = true @@ -348,7 +347,7 @@ class LibraryItem { var fileFoundCheck = this.checkFileFound(lf, true) if (fileFoundCheck === null) { newLibraryFiles.push(lf) - } else if (fileFoundCheck) { + } else if (fileFoundCheck && lf.metadata.format !== 'abs') { // Ignore abs file updates hasUpdated = true existingLibraryFiles.push(lf) } else {