mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-24 22:05:53 +03:00
[GH-ISSUE #79] [Bug Report] Special Characters in Filenames #69
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@Googolplexed0 commented on GitHub (Sep 16, 2025):
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), currentlyfix_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.
@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
@Phlogi commented on GitHub (Sep 30, 2025):
github.com/spotDL/spotify-downloader@e5c6f4567a/spotdl/utils/formatter.py (L502)