Underscore instead of space in the filename

Any questions? Need some help?
Post Reply
cazz
Posts: 3
Joined: 16 Oct 2016, 16:42

Underscore instead of space in the filename

Post by cazz »

Hi
I trying to make a better system for my DVD TV show Collections and I have use filebot sometime now.
I know I can get the filename as I want but I'm not sure how to do it.

For exampel I get something like this that I guess is default
TVshow - 00x00 - Episode title
I like to have somthing like this
00x00_-_Episode_title
I have not find how to replace space with underscore so if someone can help me what to write and how to make it default in filebot I going to be very happy.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Underscore instead of space in the filename

Post by rednoah »

From the built-in examples:

Code: Select all

{n.space('.').lower()}.{s}{e.pad(2)}
Based on that you can easily come up with your own variations:

Code: Select all

{n.space('_')}_{s00e00}_{t.space('_')}
:idea: Please read the FAQ and How to Request Help.
cazz
Posts: 3
Joined: 16 Oct 2016, 16:42

Re: Underscore instead of space in the filename

Post by cazz »

ohh thanks for the fast replay

Hmm yes I almost got it to work but I have problem with the season and episode numbers.

I like to have 00x00 but when I use

Code: Select all

sxe
I got 1x01 but I like to have 01x01
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Underscore instead of space in the filename

Post by rednoah »

Find & Replace:

Code: Select all

{s00e00.tr('SE', ' x')}
Pad:

Code: Select all

{sxe.pad(5)}
:idea: Please read the FAQ and How to Request Help.
cazz
Posts: 3
Joined: 16 Oct 2016, 16:42

Re: Underscore instead of space in the filename

Post by cazz »

ohh thanks alot :D
Post Reply