lib/extensions/imdb.rb in unified_db-0.2.6 vs lib/extensions/imdb.rb in unified_db-0.2.7

- old
+ new

@@ -2,10 +2,10 @@ module Imdb class Search < MovieList def self.query(query) - open("http://anonymouse.org/cgi-bin/anon-www.cgi/http://akas.imdb.com/find?q=#{CGI::escape(query)};s=tt") + open("http://anonymouse.org/cgi-bin/anon-www.cgi/http://akas.imdb.com/find?q=#{CGI::escape(query)}&s=tt") end def parse_movie id = document.at("head/link[@rel='canonical']")['href'][/\d+/] title = document.at("h1").innerHTML.imdb_strip_tags.gsub("\n", " ").strip.imdb_unescape_html