diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-07-24 23:29:14 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-07-24 23:29:14 +0200 |
commit | 674a5d2fff78cc3771d1a1504441b82e8322e13b (patch) | |
tree | ff3fe41e2e33e25acb07aae15eed96ef2f0c7d88 /data | |
parent | 43d4d3929a07b1ac432d4bf173370938d1e704db (diff) |
imdb: fix plot detection
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/imdb.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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(". ") |