Filename templates

sstteevvee

02-11-2008 23:58:55

You can now define your own filename templates, for specifying the "style' that TVRename will rename your files to.

The golden rule here is to make a naming style that TVRename can then later process, and still find the season and episode number. You will either have to create your own naming style with care, and/or create a corresponding "filename processor" regular expression.

In the "Filename template editor", accessed off the Options menu, you can set up how you would like you files to be named. Either choose one of the preset templates, modify one of them, or write your own from scratch.

The general idea is that various items ("tags") in curly braces "{ }" are replaced with the relevant details from the Episode in question.

If you select a show in the "My Shows" tab, before opening the template editor, you can see examples of that show in the lower part of the dialog. Those new names are then tested to see if the season and episode number can be successfully (and correctly) extracted again.

If you click on an episode in the list below, and then open the "tags" drop-down, you will see what the tags for that episode are.

You can specify an "optional" part of the filename, that is only used when its a multi-part episode, by using square brackets "[ ]".

Most of the tags are self-explanatory, but a few are worth explaining.

"Episode" is the episode number. "Episode2" is the final episode number, which is of use when its a multiple episode file, e.g. "S03E03-04 - Double Episode". Episodes are currently always padded to two digits.

"Season" is the season number with no padding, e.g. "8", "9", "10". "Season:2" will zero-pad it to two digits, e.g. "08", "09", "10".

"Number" is the overall sequential number of that episode, accumulated across all seasons. e.g. If season 1 has 12 episodes, then S01E12 is number 12, S02E01 is number 13. "Number:2" and "Number:3" are zero-padded out to 2 or 3 digits, respectively.

An example:


{ShowName} - {Season}x{Episode}[-{Season}x{Episode2}] - {EpisodeName}

Will give names like:


Mythbusters - 3x02 - Mythbusters Revealed
Mythbusters - 3x03 - Hollywood On Trial
Mythbusters - 3x04-3x05 - Mythbusters Outtakes + Buster Special

The last one uses the optional part, as its a double-episode. The actual episode name is automatically created.

If you need examples of how to enter templates for your preferred naming style, post here!

freezer90

19-02-2009 03:16:27

Hi,
is there any way to get file names lower case?

my shows look all like:
american.dad.s01e08.bullocks.to.stan.avi
alias.s01e11.the.confession.avi

*tia*

sstteevvee

19-02-2009 20:12:49

The latest alpha has an option in the preferences (at the bottom of the 'files and folders' tab) to force everything to lower case. You can try the alpha, or wait for the next official release (maybe a month or two away).