Change in the MyEpisodes script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kepler
Posts: 2
Joined: 16 Oct 2013, 21:22

Change in the MyEpisodes script

Post by kepler »

The Script that updates aquired files to My episodes seems to have a problem with some series (Scandal, Hawaii Five-0). I played around a little bit and by changing the collationKey function from:

Code: Select all

def collationKey = { s -> s == null ? '' : s.removeAll(/^(?i)(The|A)\b/).removeAll(/(?<!\d)\d{4}$/).removeAll(/\W/).lower() }
to:

Code: Select all

def collationKey = { s -> s == null ? '' : s.removeAll(/^(?i)(The|A)\b/).removeAll(/\(?\d{4}\)?$/).removeAll(/\W/).lower() }
it seems to work. Hope that this helps, or an other fix is incorporated in the code.
User avatar
rednoah
The Source
Posts: 23939
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Change in the MyEpisodes script

Post by rednoah »

I've added that change to the devel branch.
:idea: Please read the FAQ and How to Request Help.
Post Reply