]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
imdb plugin: search on the 'aka' sites, allowing the correct movie to be found even...
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 4 Apr 2007 13:53:47 +0000 (13:53 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 4 Apr 2007 13:53:47 +0000 (13:53 +0000)
data/rbot/plugins/imdb.rb

index 2388ed617d87512dcb02f587aa65de32f0ec7551..fc4dc1e6d7d740ebf8a9ab9f19cdc0e5b2088451 100644 (file)
@@ -20,7 +20,7 @@ class Imdb
   end
 
   def search(rawstr)
-    str = URI.escape(rawstr)
+    str = URI.escape(rawstr) << ";site=aka"
     resp = nil
     begin
       resp = @bot.httputil.get_response("http://us.imdb.com/find?q=#{str}",