fix: strip # from filenames — breaks Plex scanner
Some checks failed
CI / test (push) Failing after 17s
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:
parent
21a458f500
commit
7de71f1062
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import { existsSync } from 'node:fs';
|
||||||
// ── Constants ──
|
// ── Constants ──
|
||||||
|
|
||||||
/** Characters forbidden in filenames across Windows, macOS, and Linux. */
|
/** Characters forbidden in filenames across Windows, macOS, and Linux. */
|
||||||
const FORBIDDEN_CHARS = /[/\\:*?"<>|]/g;
|
const FORBIDDEN_CHARS = /[/\\:*?"<>|#]/g;
|
||||||
|
|
||||||
/** Control characters (0x00–0x1F). */
|
/** Control characters (0x00–0x1F). */
|
||||||
const CONTROL_CHARS = /[\x00-\x1f]/g;
|
const CONTROL_CHARS = /[\x00-\x1f]/g;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue