add test suite

This commit is contained in:
Pierre
2026-01-10 11:53:31 +01:00
parent 8a12f1b59b
commit 4bd3264743
2 changed files with 234 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export class FileNameVideoMetaExtractor {
const normalizedFilePath = path.normalize(filePath);
const folderList = this.watchFolderList;
if (folderList) {
if (folderList && folderList.length > 0) {
for (let folder of folderList) {
const mediaRootFolder = path.normalize(folder);
if (normalizedFilePath.startsWith(mediaRootFolder)) {