Ticket #44 (new enhancement)
Optionally strip special characters from file names
| Reported by: | http://burtonini.com/ | Owned by: | https://thomasvs.myopenid.com/ |
|---|---|---|---|
| Priority: | major | Milestone: | future |
| Component: | morituri | Version: | master |
| Keywords: | Cc: |
Description
If I'm ripping to ext3 or whatever then I can handle pretty much anything, but I rip and then move my data to a samba share that annoyingly isn't mounted with the CIFS linux extensions so it will refuse to create files named "AnotherLateNight?: Zero 7", 'The "In" Crowd.flac' and so on.
Sound Juicer always does this if the target is FAT or NTFS (yeah, this fails for samba mounts):
g_strdelimit (s, "
:*?\"<>|", ' ');
And then if the user has selected "strip special chars", will also do this:
/* Replace separators with a hyphen */
g_strdelimit (s, "
:|", '-');
/* Replace all other weird characters to whitespace */
g_strdelimit (s, "*?&!\'\"$()`>{}[]<>", ' ');
/* Replace all whitespace with underscores */
/* TODO: I'd like this to compress whitespace aswell */
g_strdelimit (s, "\t ", '_');
The target file system detection is a bit lame because of the use-case where you rip locally and then move, so I imagine a range of character-stripping levels would be really useful.
