Hello,
Is there a possible way to replace the invalid characters in name while renaming with another characters?
For example, when renaming we see that :, ? etc. are invalid characters... so Filebot omits those characters. Now, instead of deleting those characters, can I replace colon (:) with dash (-) or question mark (?) with a exclamation mark (!) and so on?
Thanks
Replace the Characters
Replace the Characters
This is my Territory.....Be on your way
Re: Replace the Characters
Yes, a few of the examples do just that:
https://www.filebot.net/naming.html
e.g.
Best to just use the {plex} binding though, because it does all of these cleanup operations implicitly:
viewtopic.php?f=5&t=4116
https://www.filebot.net/naming.html
e.g.
Code: Select all
n.replace('?', '!')
Code: Select all
n.colon(' - ')
Code: Select all
t.removeAll(/[!?.]+$/)
Best to just use the {plex} binding though, because it does all of these cleanup operations implicitly:
viewtopic.php?f=5&t=4116
Re: Replace the Characters
If you want to be really fancy you can replace as follows:
Those are single characters, but it's possible it breaks... stuff...
Code: Select all
":" > ":"
"?" > "﹖"
I only work in black and sometimes very, very dark grey. (Batman)
Re: Replace the Characters
As a colon : replacement, I'd recommend ratio ∶
https://unicode-table.com/en/2236/
https://unicode-table.com/en/2236/
Re: Replace the Characters
Any similar suggestions for multiple replacements? eg something for ? AND something for ; AND the colon suggested?
Re: Replace the Characters
e.g. Custom Character Replacement
Code: Select all
{
n.replace(
':' : '',
'-' : '',
'&' : 'and'
)
}