Changing colon to dash in TV titles

All about user-defined episode / movie / file name format expressions
Post Reply
neutra
Posts: 5
Joined: 21 Sep 2016, 15:26

Changing colon to dash in TV titles

Post by neutra »

Simple question and I'm sure it's been asked before so I apologize up front.

Want to change the default replacement of ":" in TV show titles to " -" (space + dash) instead of "/"

Can someone direct me to where I can make that change? Thanks SO much. LOVE FileBot!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Changing colon to dash in TV titles

Post by rednoah »

FileBot has a built-in convenience method for replacing the : colon character:

Code: Select all

{n.colon(' - ')}
That being said, you're on macOS, so : is allowed in the file name. However, for historic reasons, Finder will display it wrong:
https://stackoverflow.com/a/13298479/1514467
:idea: Please read the FAQ and How to Request Help.
hedkase
Posts: 1
Joined: 21 Jan 2021, 22:14

Re: Changing colon to dash in TV titles

Post by hedkase »

So, if my current expression format is: {n} - {s00e00} - {t}

Where would the code you suggested go?

I've tried adding to the beginning and to the end with no luck.
Last edited by hedkase on 21 Jan 2021, 22:34, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Changing colon to dash in TV titles

Post by rednoah »

Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include System Information (i.e. filebot -script fn:sysinfo console output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features.
:idea: Please read the FAQ and How to Request Help.
Post Reply