Page 1 of 1

Removing a double date in a TV title.

Posted: 30 Mar 2017, 05:16
by boe
Hello,

I use this code - G:/TVCurrent/{n.sortName('$2, $1')} ({y})/Season {s} ({episodelist.findAll{it.season == s}.airdate.year.min()})/{n} - {s00e00} - {t} {vf} it works for most shows but some shows have the date in the name. E.g. the 2015 TV series called the magicians. For shows Iike this, I get - Magicians (2015), The (2015) I'd like to get Magicians, The (2015). Is this possible without writing two different scripts depending on the show title?

Re: Removing a double date in a TV title.

Posted: 30 Mar 2017, 05:39
by rednoah
Here's how I'd do it:

Code: Select all

{n.replaceTrailingBrackets().sortName('$2, $1')} ({y})

Code: Select all

Season {s} ({sy[0]})

Re: Removing a double date in a TV title.

Posted: 30 Mar 2017, 06:24
by boe
Fantastic! Thanks