diff --git a/src/scanner.ts b/src/scanner.ts index 3573544..0f6427e 100644 --- a/src/scanner.ts +++ b/src/scanner.ts @@ -39,6 +39,10 @@ export default function (logger: Logger, db: MediaDatabase, config: Record { const mediaId = getId(config.paths.media, mediaPath) + + // Filter out files that are not to be scanned + if (!shouldFileBeScanned(mediaId, mediaPath)) return + try { if (!mediaStat) { await db.remove(await db.get(mediaId)) @@ -148,4 +152,16 @@ export default function (logger: Logger, db: MediaDatabase, config: Record