[GH-ISSUE #14] Special Characters #12

Closed
opened 2026-02-27 15:47:55 +03:00 by kerem · 2 comments
Owner

Originally created by @Itschotsch on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/14

Some song titles contain very weird special characters or are extremely long, which is not allowed in directory or file names by the OS (Windows in my case). If the track template path in the Soggfy settings is something like {artist_name}/{album_name}{multi_disc_path}/{track_num}. {track_name}.ogg, Soggfy will try to name the file accordingly, which will obviously not work. I found that in this case, the file will not be saved at all. (But the green checkmark next to the song will sometimes still appear.) I suggest replacing all non-latin characters with a - or similar and limiting the file name length before saving the file.

Originally created by @Itschotsch on GitHub (Feb 14, 2022). Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/14 Some song titles contain very weird special characters or are extremely long, which is not allowed in directory or file names by the OS (Windows in my case). If the track template path in the Soggfy settings is something like `{artist_name}/{album_name}{multi_disc_path}/{track_num}. {track_name}.ogg`, Soggfy will try to name the file accordingly, which will obviously not work. I found that in this case, the file will not be saved at all. (But the green checkmark next to the song will sometimes still appear.) I suggest replacing all non-latin characters with a `-` or similar and limiting the file name length before saving the file.
kerem closed this issue 2026-02-27 15:47:55 +03:00
Author
Owner

@Rafiuth commented on GitHub (Feb 14, 2022):

Special path characters are replaced with unicodes that look similar, but they look weird on Windows Explorer.

I'll implement an option to trim long names and replace special characters with a dash.

<!-- gh-comment-id:1039340126 --> @Rafiuth commented on GitHub (Feb 14, 2022): Special path characters are replaced with unicodes that [look similar](https://github.com/Rafiuth/Soggfy/blob/266e9e10a3f60c5784c5557c81095e7bd444b4e7/Sprinkles/src/path-template.ts#L133), but they look weird on Windows Explorer. I'll implement an option to trim long names and replace special characters with a dash.
Author
Owner

@Rafiuth commented on GitHub (Feb 15, 2022):

Support for long paths in added in 7aaadf1, please let me know if it fixes your issue.

Binaries

<!-- gh-comment-id:1039821783 --> @Rafiuth commented on GitHub (Feb 15, 2022): Support for long paths in added in 7aaadf1, please let me know if it fixes your issue. [Binaries](https://github.com/Rafiuth/Soggfy/actions/runs/1844843031)
Sign in to join this conversation.
No labels
pull-request
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
starred/Soggfy#12
No description provided.