Page 1 of 1

Help with renaming episodes of West Wing

Posted: 16 Jan 2015, 06:31
by obi
I had the following directory structure -

tv\The West Wing\Season 3
The West Wing s03e01
...
The West Wing s03e22

here is the tvdb listing which is used for matching - http://thetvdb.com/?tab=season&seriesid ... 4361&lid=7

As you can see there is one special episode and 21 episodes. After FileBot ran, it renamed files so that 3x01 was in fact 3x00 (the special) and so on. So now I want to renumber things so that it is fixed.

Here is the format I am using -

\\server\Tv\{n} ({y})\{episode.special ? 'Season 0':'Season ' + s}\{n} - {s+'x'}{e.pad(2)} - {episode.title.replacePart(', Part $1').replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail()}

I got this from another post in the forums and slightly modified to suit my needs

Thanks, this is my first post and I am still learning to use this wonderful software.

Re: Help with renaming episodes of West Wing

Posted: 16 Jan 2015, 08:37
by rednoah
The data looks good to me. Your format can't handle specials and multi-part episodes though. Better use the predefined {sxe} binding.

Also => viewtopic.php?f=4&t=1868

Re: Help with renaming episodes of West Wing

Posted: 16 Jan 2015, 19:24
by obi
Thank you rednoah, I will include the proper details next time. I wrote this post from another pc so didn't have FileBot, only had access to the file share.

I'll look into why my format can't handle specials, it seems it should since it checks for episode.special? I'm just trying to use the format from one of the popular scripts.

Re: Help with renaming episodes of West Wing

Posted: 16 Jan 2015, 20:06
by rednoah
It all depends on what you want. But the {s+'x'}{e.pad(2)} probably won't work the way you want for special and multi-part episodes. That's why there's {sxe} and {s00e00} ;)