brianmichel/BadFruit — pull request #17 by IllegalCactus (2014-11-08 17:30:09+00:00)
Title: Fix Rotten Tomatoes missing director

When using Rotten Tomato's API to search for movies by name, the returned JSON list of films does not contain an `"abridged_directors"` attribute which is what BadFruit looks for.

However, this attribute does appear when requesting details for a specific movie via ID.

See these two URL's for a demonstration:

* http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=YOURAPIKEY&q=avengers&page_limit=10&page=1

* http://api.rottentomatoes.com/api/public/v1.0/movies/770672122?apikey=YOURAPIKEY

The BadFruit Movie class uses the first link to gather details for the movie. This results in `Movie.director` being nil. These changes add a new method in the Movie class for getting the director, using a call to the existing `Base.get_movie_info` method.