diff options
-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(". ") |