Script not matching show correctly

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
VangardMk
Posts: 1
Joined: 23 Dec 2014, 04:15

Script not matching show correctly

Post by VangardMk »

Hi, I've created a simple script that renames tv shows based on the excellent scripts that have been posted here. I've run into a problem with a specific tv show. Lets say I have a file im trying to rename like "[HorribleSubs] Fate Stay Night - Unlimited Blade Works - 08 [720p].mkv" In this case the show name is Fate Stay Night: Unlimited Blade Works, however there is also a show called Fate Stay Night. Filebot correctly finds both of these shows as an option for renaming but then chooses the shorter one as the "correct" series name.

I havn't been able to figure out a way to be able to compare the filename to the different possible series names that filebot comes up with but I am a complete groovy noob so I am struggling to find something that works. What I think would work would be to compare tokens from the filename and the multiple different show names that filebot finds and then have it pick the show that has the most "matching" tokens.

I'm not really sure how exactly to get the series name that filebot has decided are possibilities and use that to do what I want to do above, so if anyone has any ideas or if someone can point me in the right direction I would be very appreciative!
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script not matching show correctly

Post by rednoah »

Have you had a look at the --filter option? See FAQ #2
:idea: Please read the FAQ and How to Request Help.
Post Reply