From 810ada4dd1a8dfe894c90dfd135ac7b339864d21 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Wed, 28 Jan 2009 20:47:00 +0100 Subject: [PATCH] imdb plugin: fixed the ratings regex --- data/rbot/plugins/imdb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = /([0-9.]+)\/10<\/b>\n?\r?\s+\(([0-9,]+) votes?<\/a>\)<\/small>/.match(resp.body) + m = /([0-9.]+)\/10<\/b>\n?\r?\s+[^<]+]+>([0-9,]+) votes?<\/a>/.match(resp.body) if m ratings = "#{m[1]}/10 (#{m[2]} voters)" end -- 2.39.5