diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-04-02 16:12:51 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-04-02 16:12:51 +0200 |
commit | 2448d5a41b452f8e4e29e8f50d9624a3a6f62ed7 (patch) | |
tree | d3056695146f6eee24321a319e6ccd8d0b2d5a0a /data | |
parent | 8ddc8ed81f1f5065705c68d2abda5804319ff981 (diff) |
imdb: fix for missing director
Director information was missing because IMDB had changed its 'info' div
box to include an id. Cope with it.
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/imdb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index f3e6504d..33e13b63 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -99,7 +99,7 @@ class Imdb end def grab_info(info, body) - /<div class="info">\s+<h5>#{info}:<\/h5>\s+(.*?)<\/div>/mi.match(body)[1] rescue nil + /<div (?:id="\S+-info" )?class="info">\s+<h5>#{info}:<\/h5>\s+(.*?)<\/div>/mi.match(body)[1] rescue nil end def fix_article(org_tit) |