From 0be9d9a4279d7fbf820d4b9b3ce802a56fe4c97d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 5 Apr 2007 09:30:37 +0000 Subject: imdb plugin: fix detection of multiple titles per year --- 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 96501659..7887655d 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -120,7 +120,7 @@ class Imdb m = /([^<]*)<\/title>/.match(resp.body) return nil if !m title_date = m[1] - pre_title, date, extra = title_date.scan(/^(.*)\((\d\d\d\d(?:[IV]+)?)\)\s*(.+)?$/).first + pre_title, date, extra = title_date.scan(/^(.*)\((\d\d\d\d(?:\/[IV]+)?)\)\s*(.+)?$/).first pre_title.strip! title = fix_article(pre_title) -- cgit v1.2.3