Skip to content

Conversation

@SjxSubham
Copy link

Add whitespace trimming to sanitizePath function.

Screenshot From 2026-01-01 10-04-43

When a playlist name has a trailing space. this sanitizePath function only replaces invalid characters but doesn't trim leading space.

Issue
This creates a folder path like C:\Users\.. .\daniel caesar, etc. \ (with a trailing space before the backslash). Windows automatically removes trailing spaces from folder names, so the folder is actually created as daniel caesar, etc.\ but the application tries to write to the path with the space, causing the "path not found" error.

This Solution fixes this Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant