[GH-ISSUE #79] [Bug Report] Special Characters in Filenames #69

Open
opened 2026-02-27 04:57:21 +03:00 by kerem · 3 comments
Owner

Originally created by @U2EZNeko on GitHub (Sep 15, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/79

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
API dev branch, current live branch affected aswell

Bug Description
Bad encodings of special characters.

Bug Triggering Command

zotify https://open.spotify.com/intl-de/artist/4OBJLual30L7gRl5UkeRcT (T.I.)

Will create the Artist Folder as T.I_
Another Artist would be *NSYNC

This happens for albums aswell.

Config File
Defaults + custom regex.

Additional Context
Causes duplicates if an album/arist already exists with the correct folder namings. Spotdl used to do it perfectly so now when i run Zotify on the same artist or album it'll cause a dupe.

Is this something you can fix easily? Otherwise I'll just have to deal with it.

If needed I can get you more affected artists/albums when im home.

Love, Neko.

Originally created by @U2EZNeko on GitHub (Sep 15, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/79 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** API dev branch, current live branch affected aswell **Bug Description** Bad encodings of special characters. **Bug Triggering Command** zotify https://open.spotify.com/intl-de/artist/4OBJLual30L7gRl5UkeRcT (T.I.) Will create the Artist Folder as T.I_ Another Artist would be *NSYNC This happens for albums aswell. **Config File** Defaults + custom regex. **Additional Context** Causes duplicates if an album/arist already exists with the correct folder namings. Spotdl used to do it perfectly so now when i run Zotify on the same artist or album it'll cause a dupe. Is this something you can fix easily? Otherwise I'll just have to deal with it. If needed I can get you more affected artists/albums when im home. Love, Neko.
Author
Owner

@Googolplexed0 commented on GitHub (Sep 16, 2025):

(T.I.) will create the Artist Folder as T.I_
Another Artist would be *NSYNC

This is the result of the fix_filename() function. Directories cannot contain a trailing . and invalid characters like /\:|<>"?* are all replaced with _. Although there are differences between what characters are allowed across different platforms (Windows vs Mac vs Linux), currently fix_filename() behaves the same across all platforms. This means it may make replacements on one platform that are not strictly necessary because they would be necessary for another platform.

Not high on my list of changes, since consistency across platforms is nice and this is only noticeable when comparing this library's output against the output of another. If you have a suggestion for a change (and rigorously test it) I would consider implementing it.

<!-- gh-comment-id:3294774173 --> @Googolplexed0 commented on GitHub (Sep 16, 2025): > (T.I.) will create the Artist Folder as T.I_ > Another Artist would be *NSYNC This is the result of the `fix_filename()` function. Directories cannot contain a trailing `.` and invalid characters like `/\:|<>"?*` are all replaced with `_`. Although there are differences between what characters are allowed across different platforms (Windows vs Mac vs Linux), currently `fix_filename()` behaves the same across all platforms. This means it may make replacements on one platform that are not strictly necessary because they _would_ be necessary for another platform. Not high on my list of changes, since consistency across platforms is nice and this is only noticeable when comparing this library's output against the output of another. If you have a suggestion for a change (and rigorously test it) I would consider implementing it.
Author
Owner

@U2EZNeko commented on GitHub (Sep 22, 2025):

The problem mainly shows because my library was started with spotdl which handled special characters just fine.

I'll have a peek around the fix_filename() function, maybe i can find a solution for windows. No promises tho i suck with complex coding lel

<!-- gh-comment-id:3318280668 --> @U2EZNeko commented on GitHub (Sep 22, 2025): The problem mainly shows because my library was started with spotdl which handled special characters just fine. I'll have a peek around the fix_filename() function, maybe i can find a solution for windows. No promises tho i suck with complex coding lel
Author
Owner
<!-- gh-comment-id:3350182862 --> @Phlogi commented on GitHub (Sep 30, 2025): https://github.com/spotDL/spotify-downloader/blob/e5c6f4567ae6f9fcaf083816363b0768c91e56e2/spotdl/utils/formatter.py#L502
Sign in to join this conversation.
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/zotify#69
No description provided.