summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorMatthias Hecker <apoc@sixserv.org>2009-01-28 20:47:00 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-28 21:01:47 +0100
commit810ada4dd1a8dfe894c90dfd135ac7b339864d21 (patch)
treed6bb25508267acf12ff3c8c937605bb97be73f35 /data/rbot/plugins
parent05852a3188a1811e2f5030c747d5a3add2ecd1c0 (diff)
imdb plugin: fixed the ratings regex
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/imdb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb
index 0a878c75..bfe27369 100644
--- a/data/rbot/plugins/imdb.rb
+++ b/data/rbot/plugins/imdb.rb
@@ -165,7 +165,7 @@ class Imdb
end
ratings = "no votes"
- m = /<b>([0-9.]+)\/10<\/b>\n?\r?\s+<small>\(<a href="ratings">([0-9,]+) votes?<\/a>\)<\/small>/.match(resp.body)
+ m = /<b>([0-9.]+)\/10<\/b>\n?\r?\s+[^<]+<a href="ratings"[^>]+>([0-9,]+) votes?<\/a>/.match(resp.body)
if m
ratings = "#{m[1]}/10 (#{m[2]} voters)"
end