anyway, I have a small problem with title guessing on movie files with
names with parenthesis, () and [].
say we have a file name like:
[something-different-from-divx] movie title (1999).avi
most of the time, guessit tells me that the movie title is "something-
different-from-divx", not "movie title"
the same problem with file names like:
[divx eng] (horror) movie title (1999).avi
guessit tells me that the movie title is "horror", not "movie title".
I took a look at guessit code, and I found that the matcher behave
like that because (if I'm not wrong) it consider strings inside
parenthesis like the "original" title, and strings outside parenthesis
like the "aka" title (akas are movie titles in other languages
differents from the original one). am I wrong?
as a solution to that problem, I would like to propose the
introduction of the "akaTitle" attribute, so guessit can propose the
original title as the one inside parenthesis (when found) and the
akaTitle as the one outside parenthesis.
if title inside parenthesis is not present, you can consider the
outside one the original title (I don't know if I explained myself
well)
for the moment, as a workaround, I take the file name, I remove
parenthesis, and I use guessit, so it gets the right title.
thanks for reading, I hope it could help..
Alberto
thanks for the feedback, really glad you enjoy GuessIt!
The problem you are having is the following: GuessIt first tries to
identify as many groups as possible, and then look at the remaining
ones. So, for instance, for:
[divx eng] (horror) movie title (1999).avi
you will have 2 remaining "semantic" groups: "horror" and "movie
title" (because the rest got recognized). In this case, GuessIt just
assumes the title is the first one. It doesn't pay attention at the
moment to the fact that it is between parentheses, but could very well
do that (and probably should) in a future version.
One other solution could also be to have GuessIt know about the
typical genres (eg: horror, SF, drama, comedy, ...)
In any case, what could be really helpful for us would be if you could
send real examples of such files, so that we can add them to the
unittests.
Thanks!
Nico.