From 674a5d2fff78cc3771d1a1504441b82e8322e13b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 24 Jul 2010 23:29:14 +0200 Subject: imdb: fix plot detection --- data/rbot/plugins/imdb.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/imdb.rb') diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index 6e3ec530..7ffd2df8 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -176,9 +176,9 @@ class Imdb end plot = nil - data = grab_info(/Plot (?:Outline|Summary)/, resp.body) + data = grab_info(/Plot(?: (?:Outline|Summary))?/, resp.body) if data - plot = "Plot: " + data.ircify_html.gsub(/\s+more$/,'') + plot = "Plot: " + data.ircify_html.gsub(/\s+more\s*$/,'').gsub(/\s+Full summary » \| Full synopsis »\s*$/,'') end info << ["Ratings: " << ratings, "Genre: " << genre.join('/') , plot].compact.join(". ") -- cgit v1.2.3