diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-05 09:30:37 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-05 09:30:37 +0000 |
commit | 0be9d9a4279d7fbf820d4b9b3ce802a56fe4c97d (patch) | |
tree | 967e481bf3ef0888fe484cf8851744d425005194 /data/rbot/plugins | |
parent | d13c4f4e8d1d6a9b126540ba60dd541048b23772 (diff) |
imdb plugin: fix detection of multiple titles per year
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 96501659..7887655d 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -120,7 +120,7 @@ class Imdb m = /<title>([^<]*)<\/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) |