From 2e6e4f970cdb90d06c8a5ce2764af8fbb046d8a4 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 18 Jul 2022 18:17:50 -0500 Subject: [PATCH] Remove comments from scanner --- server/scanner/Scanner.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/scanner/Scanner.js b/server/scanner/Scanner.js index 8c49722f..2f1d2456 100644 --- a/server/scanner/Scanner.js +++ b/server/scanner/Scanner.js @@ -205,8 +205,6 @@ class Scanner { checkRes.libraryItem = libraryItem checkRes.scanData = dataFound - console.log('Has New Library Files', libraryItem.media.metadata.title, 'num new', checkRes.newLibraryFiles.length) - if (global.ServerSettings.scannerUseSingleThreadedProber) { // If this item will go over max size then push current chunk if (libraryItem.audioFileTotalSize + itemDataToRescanSize > MaxSizePerChunk && itemDataToRescan.length > 0) { @@ -242,7 +240,7 @@ class Scanner { // Potential NEW Library Items for (let i = 0; i < libraryItemDataFound.length; i++) { var dataFound = libraryItemDataFound[i] - console.log('Potential new library item data') + var hasMediaFile = dataFound.libraryFiles.some(lf => lf.isMediaFile) if (!hasMediaFile) { libraryScan.addLog(LogLevel.WARN, `Item found "${libraryItemDataFound.path}" has no media files`)