lib/tmdb/tmdb_movie.rb in royw-tmdb-0.1.1 vs lib/tmdb/tmdb_movie.rb in royw-tmdb-0.1.2
- old
+ new
@@ -8,10 +8,10 @@
@query = "http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=#{@imdb_id}&api_key=#{key}"
@logger = OptionalLogger.new(logger)
end
def image
- TmdbImage.new(@imdb_id, @api_key, @logger)
+ TmdbImage.new(@imdb_id.gsub(/^tt/, ''), @api_key, @logger) rescue nil
end
def fanarts
result = []
begin