I made the search for a title a class method. You will now call IMDB.title_search("high plains drifter") and receive a hash back. It use to be that you had to create a new IMDB object and then get the titles. I still support a movie.title_search but now wonder why you would do that. The hash is pretty interesting as well.
{"Titles (Exact Matches)"=>["Office Space"],
"Titles (Partial Matches)"=>["'Office Space': Out of the Office"],
"Popular Titles"=>["Office Space"],
"Titles (Approx Matches)"=>["Spice Girls: One Hour of Girl Power"]}
It will look something like that. I am thinking about stripping out the word title and the )('s but I have yet to write it.
The current supported methods are:
movie=IMDB.new(movie)
pp movie.title
pp movie.poster_link
pp movie.rating
pp movie.aka
pp movie.also_known_as
pp movie.aspect
pp movie.aspect_ratio
pp movie.awards
pp movie.certification
pp movie.certifications
pp movie.certs
pp movie.color
pp movie.company
pp movie.country
pp movie.date
pp movie.director
pp movie.directors
pp movie.genre
pp movie.genres
pp movie.imdb_link
pp movie.keywords
pp movie.language
pp movie.mpaa
pp movie.page_html
pp movie.plot
pp movie.plot_keywords
pp movie.plot_outline
pp movie.poster_link
pp movie.rating
pp movie.ratings
pp movie.release_date
pp movie.runtime
pp movie.tagline
pp movie.user_comments
pp movie.writer
pp movie.writers
pp movie.title_search
pp IMDB.title_search("white strips")
Looks like a lot but write and writers returns the same things I just thought it would be nice to support both.
I added some comments about what each method should return and made it a little less fragile. I am going to start on supporting the actors list, but other then that I am done.