Page 1 of 1

Underscore instead of space in the filename

Posted: 16 Oct 2016, 18:52
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.

Re: Underscore instead of space in the filename

Posted: 16 Oct 2016, 19:20
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('_')}

Re: Underscore instead of space in the filename

Posted: 16 Oct 2016, 19:31
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

Re: Underscore instead of space in the filename

Posted: 16 Oct 2016, 19:38
by rednoah
Find & Replace:

Code: Select all

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

Code: Select all

{sxe.pad(5)}

Re: Underscore instead of space in the filename

Posted: 16 Oct 2016, 20:18
by cazz
ohh thanks alot :D