#1 feat: user can change illegal characters in config file

Closed
donmerendolo wants to merge 1 commits from donmerendolo/deemix-py:illegal-characters into refactoring

Added an illegalCharacters variable in the config.json file, as they can differ from filesystem to filesystem (or operating system). The default value is [\u0000\/\:*?"<>|]. Also changed fixName() in pathtemplates.py and its arguments.

Sorry if there is anything wrong. This is my first pull request.

Added an `illegalCharacters` variable in the config.json file, as they can differ from filesystem to filesystem (or operating system). The default value is `[\u0000\/\:*?"<>|]`. Also changed `fixName()` in pathtemplates.py and its arguments. Sorry if there is anything wrong. This is my first pull request.
donmerendolo added 1 commit 6 months ago
Poster
Owner

Making the regex a user configurable setting is not the best of ideas, maybe it's better to change the regex based on the os.

Making the regex a user configurable setting is not the best of ideas, maybe it's better to change the regex based on the os.
Poster

I thought about that but didn't find any module or anything. Maybe detecting the filesystem the folder is in with something like this https://stackoverflow.com/questions/25283882/determining-the-filesystem-type-from-a-path-in-python and selecting the correct group in a dictionary? I don't know how to implement that but can try.

I thought about that but didn't find any module or anything. Maybe detecting the filesystem the folder is in with something like this https://stackoverflow.com/questions/25283882/determining-the-filesystem-type-from-a-path-in-python and selecting the correct group in a dictionary? I don't know how to implement that but can try.
Poster

Nope, can't do this properly. Will use a script.

Nope, can't do this properly. Will use a script.
RemixDev closed this pull request 4 months ago
Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.