How to prevent duplicate year in TV Shows

All about user-defined episode / movie format expressions
Post Reply
nerbonne
Posts: 2
Joined: 16 Feb 2018, 09:34

How to prevent duplicate year in TV Shows

Post by nerbonne » 17 Feb 2018, 03:06

Hi all, I was able to get the Episode naming scheme setup so that it works pretty well, but one issue that I'm running into is when the TV show already contains the year in the name of the show, my naming scheme will add the year again. How can I suppress the additional year?

Z:/Video/TV Shows/{n} ({y})/Season {s.pad(2)}/{n} {s00e00} - {t}


Normal shows will produce:

Z:/Video/TV Shows/Firefly (2002)/Season 01/Firefly S01E01 - Serenity


But a show with the year in it will produce:

Z:/Video/TV Shows/MacGyver (2016) (2016)/Season 02/MacGyver (2016) S02E10 - War Room + Ship

User avatar
rednoah
The Source
Posts: 16812
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to prevent duplicate year in TV Shows

Post by rednoah » 17 Feb 2018, 04:07

You can use the {ny} binding which will take care of corner cases such as this.
:idea: Please read the FAQ and How to Request Help.

nerbonne
Posts: 2
Joined: 16 Feb 2018, 09:34

Re: How to prevent duplicate year in TV Shows

Post by nerbonne » 17 Feb 2018, 08:23

Wow, amazing support. Thanks. Just sent you €10.00.

One more question, any to make FileBot ignore certain file types. IE, .nfo Sometimes it renames them and I don't want that.

User avatar
rednoah
The Source
Posts: 16812
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to prevent duplicate year in TV Shows

Post by rednoah » 17 Feb 2018, 13:48

You can use DELETE to remove them from the list before hitting Rename. You can also use Presets to auto-select certain sets of files (e.g. only video files).

Here's a few different methods that allow you to select certain sets of files:
viewtopic.php?f=3&t=4222
:idea: Please read the FAQ and How to Request Help.

Post Reply