Parsing filenames

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
d3x
Posts: 7
Joined: 25 May 2013, 03:53

Parsing filenames

Post by d3x »

I really only need filebot to convert "American.Beauty.1999.480p.BRRip.XviD.AC3-ViSiON" to "American Beauty (1999)"

Is there an easy way to make use of the filebot parse engine?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Parsing filenames

Post by rednoah »

You're probably looking for matchMovie(string, strict)

Code: Select all

def f = 'X:/American.Beauty.1999.480p.BRRip.XviD.AC3-ViSiON.avi' as File

println matchMovie(f.name, false) // fast file-name lookup
println detectMovie(f, false) // full file-structure search/lookup
:idea: Please read the FAQ and How to Request Help.
d3x
Posts: 7
Joined: 25 May 2013, 03:53

Re: Parsing filenames

Post by d3x »

matchMovie() failed on most of my movie colleciton. detectMovie() had a 100% success rate.

Are detectSeriesName() and parseEpisodeNumber() the equivalent to matchMovie() or detectMovie()?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Parsing filenames

Post by rednoah »

matchMovie only matches movies for a string. It's 100% accurate but may not works to messy strings. Detect movie does all kinda shit including online shit to figure things out.

detectSeriesName tries to guess the series (search query) but does no search. parseEpisodeNumber will give you SxE objects for a given string containing known SxE patterns.
:idea: Please read the FAQ and How to Request Help.
Post Reply