Fix:Watcher scanner to ignore non-media files that are not inside library item folders #834

This commit is contained in:
advplyr 2022-07-19 08:33:32 -05:00
parent 372101592c
commit 9916a1e8f6
2 changed files with 24 additions and 1 deletions

View file

@ -512,6 +512,7 @@ class Scanner {
}
var relFilePaths = folderGroups[folderId].fileUpdates.map(fileUpdate => fileUpdate.relPath)
var fileUpdateGroup = groupFilesIntoLibraryItemPaths(library.mediaType, relFilePaths)
if (!Object.keys(fileUpdateGroup).length) {
Logger.info(`[Scanner] No important changes to scan for in folder "${folderId}"`)
continue;