jkwill87 / mnamer

media file renaming and organizing tool
https://pypi.org/project/mnamer
MIT License
791 stars 66 forks source link

Movie renaming : removal of ":" #120

Open sioban opened 3 years ago

sioban commented 3 years ago

Hello,

I've tried Mnamer and I've found that the movie format is removing some characters from the official title of the movie.

For example: "Hellraiser: Bloodline (1996)" becomes "Hellraiser Bloodline (1996)" (with two spaces)

I'm using this format for movie format : "{name} ({year}){extension}"

Can you tell me where I'm wrong ?

jkwill87 commented 3 years ago

Although colons may be supported on your system, as it is for many POSIX filesystems, it is not for many others, e.g. FAT32, NTFS, ExFAT, and network drives on Windows. mnamer currently filters out these characters to support these more restrictive platforms and filesystems.

Given all these possible combinations it would probably be error-prone for mnamer to guess what is and isn't valid but it may be worthwhile to add some sort of "Windows Compatible Filename" setting to enable or disable this filtering. In the meantime you can probably use the replace_after setting to transform colons into some other character before renaming.