Fix core path/sanitization bugs (#EXTM3U, relative paths, filename sanitization) #1

Open
opened 2026-08-18 19:37:42 +00:00 by r2d2-bot · 0 comments
Collaborator

Fix getLocalPath() robustness (trailing slash on REMOTE_ROOT_PATH, backslash server paths) and the m3uWriter.ts #EXTM3U/relative-path bugs, and add sanitizePathSegment(), all in lib/fileDownloader.ts / lib/m3uWriter.ts. These are shared by both commands and unblock everything else.

See PLANNING/MASTER_PLAN.md for full context (Root causes section) and Task list item 1.

Fix `getLocalPath()` robustness (trailing slash on `REMOTE_ROOT_PATH`, backslash server paths) and the `m3uWriter.ts` `#EXTM3U`/relative-path bugs, and add `sanitizePathSegment()`, all in `lib/fileDownloader.ts` / `lib/m3uWriter.ts`. These are shared by both commands and unblock everything else. See `PLANNING/MASTER_PLAN.md` for full context (Root causes section) and Task list item 1.
Sign in to join this conversation.
No labels
m3u_files
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jshaver/jellyfin-to-m3u#1
No description provided.