diff options
author | Matthias Hecker <apoc@sixserv.org> | 2009-01-28 20:47:00 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-28 21:01:47 +0100 |
commit | 810ada4dd1a8dfe894c90dfd135ac7b339864d21 (patch) | |
tree | d6bb25508267acf12ff3c8c937605bb97be73f35 /data/rbot/plugins | |
parent | 05852a3188a1811e2f5030c747d5a3add2ecd1c0 (diff) |
imdb plugin: fixed the ratings regex
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/imdb.rb | 2 |
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 |