From 7de71f10627c892a81d15e26e4245f4353d299d3 Mon Sep 17 00:00:00 2001 From: jlightner Date: Sat, 4 Apr 2026 03:15:11 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20strip=20#=20from=20filenames=20=E2=80=94?= =?UTF-8?q?=20breaks=20Plex=20scanner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plex interprets # as a URL fragment delimiter, causing files with # in the name to be silently skipped during library scans. - Added # to FORBIDDEN_CHARS in file-organizer.ts sanitizer - Bulk-renamed 100 existing files on disk - Updated 100 filePath records in DB to match --- src/services/file-organizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/file-organizer.ts b/src/services/file-organizer.ts index 8760308..36906d2 100644 --- a/src/services/file-organizer.ts +++ b/src/services/file-organizer.ts @@ -5,7 +5,7 @@ import { existsSync } from 'node:fs'; // ── Constants ── /** Characters forbidden in filenames across Windows, macOS, and Linux. */ -const FORBIDDEN_CHARS = /[/\\:*?"<>|]/g; +const FORBIDDEN_CHARS = /[/\\:*?"<>|#]/g; /** Control characters (0x00–0x1F). */ const CONTROL_CHARS = /[\x00-\x1f]/g;