Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed windows illegal character bug #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

perepichka
Copy link

Fixed windows illegal character bug resulting in failed creation of FLAC files.

Added pruning for illegal characters in windows + striping trailing spaces and dots from directories.

val = val.replace(i, '')
return val

if os.name == 'nt':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's define an OS appropriate sanitize function at class level (so it's constructed once at module import level).
Also this function will require some tests with os.name mocking to ensure the behaviour.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will get around to it this weekend. FYI, the existing tests seem to fail on my Windows machine (has something to do with how the encoded Russian language .cues are loaded, didn't look too much further into it). Will try to investigate it.

@idlesign
Copy link
Owner

Link #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants