fix: strip # from filenames — breaks Plex scanner
Some checks failed
CI / test (push) Failing after 17s

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
This commit is contained in:
jlightner 2026-04-04 03:15:11 +00:00
parent 21a458f500
commit 7de71f1062

View file

@ -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 (0x000x1F). */
const CONTROL_CHARS = /[\x00-\x1f]/g;