Page 1 of 1

Exclude special character from file name

Posted: 06 Jan 2017, 11:55
by horstepipe
hey
is there a way to exclude a character from file name and replace it with something else?
In my environment, I can't have "&" in my filenames, so I'd like Filebot to automatically make

Code: Select all

Mike & Molly
to

Code: Select all

Mike and Molly
Best regards

Re: Exclude special character from file name

Posted: 06 Jan 2017, 15:27
by rednoah
e.g.

Code: Select all

'Mike & Molly'.replace('&', 'and')

Re: Exclude special character from file name

Posted: 06 Jan 2017, 16:59
by horstepipe
Thank you
So this is only possible in command line or where do I exactly have to execute this command?
At the moment I'm using only the GUI of filebot.

Re: Exclude special character from file name

Posted: 06 Jan 2017, 17:13
by rednoah
Please read up on custom formats:
http://www.filebot.net/naming.html

e.g.

Code: Select all

{n.replace('&', 'and')} - {s00e00} - {t}

Re: Exclude special character from file name

Posted: 06 Jan 2017, 22:50
by horstepipe
Thank you!