summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-02-20 22:25:13 +0100
committerMatthias H <apoc@sixserv.org>2014-02-20 22:25:13 +0100
commitcd5c9cbefe219952f305ee5a9c9ab8468548750b (patch)
tree5c9ecb113eeb4b44eb0b937be2332e8409bc9df0 /data
parent8b7f65d0251120b7ca7dda5adef483158a1bcd54 (diff)
[plugin] imdb small parser fix
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/imdb.rb4
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