X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fimdb.rb;h=f3e6504dc617e4d507f2bee78303509a08a1a906;hb=16336b4a240a4265d1f2df1e30d7b68d3a924287;hp=0a878c7516f8e112506bdc817ffd3958b1097cac;hpb=41fba3fa34d46c77dbfb580fc3a8c737d68eafde;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index 0a878c75..f3e6504d 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 @@ -469,7 +469,7 @@ class ImdbPlugin < Plugin end # Find the movies with a participation of :who in the year :year - # TODO: allow year to be either a year or a decade ('[in the] 1960s') + # TODO: allow year to be either a year or a decade ('[in the] 1960s') # def movies(m, params) who = params[:who].to_s