Help with renaming episodes of West Wing

Any questions? Need some help?
Post Reply
obi
Posts: 8
Joined: 16 Jan 2015, 06:19

Help with renaming episodes of West Wing

Post 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.
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with renaming episodes of West Wing

Post 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
:idea: Please read the FAQ and How to Request Help.
obi
Posts: 8
Joined: 16 Jan 2015, 06:19

Re: Help with renaming episodes of West Wing

Post 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.
User avatar
rednoah
The Source
Posts: 23946
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with renaming episodes of West Wing

Post 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} ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply