diff options
Diffstat (limited to 'data/rbot/plugins/imdb.rb')
-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 60826299..57cae635 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -191,8 +191,8 @@ class Imdb end genre = Array.new - resp.body.scan(/<a\s+onclick="[^"]+"\s+href="\/genre\/[^"]+"\s+>([^<]+)<\/a>/) do |gnr| - genre << gnr + resp.body.scan(/<a\s+href="\/genre\/[^\?]+\?[^"]+"\s+>([^<]+)<\/a>/) do |gnr| + genre << gnr.first.strip end plot = resp.body.match(DESC_MATCH)[3] rescue nil |