Page 1 of 1
Parsing filenames
Posted: 25 May 2013, 04:00
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?
Re: Parsing filenames
Posted: 25 May 2013, 05:37
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
Re: Parsing filenames
Posted: 01 Jun 2013, 00:35
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()?
Re: Parsing filenames
Posted: 01 Jun 2013, 05:58
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.