X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fimdb.rb;h=57cae635d4535bb75cccc1c1dfaa6360ed6b12ee;hb=6cf365c49ce5fbe24c0a4ff0663550390b501fea;hp=3f750793cc1969a86e38a34ce0ebdb679e5b4163;hpb=23b75487b51e7bb0850c66e320eda586658aed80;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb index 3f750793..57cae635 100644 --- a/data/rbot/plugins/imdb.rb +++ b/data/rbot/plugins/imdb.rb @@ -11,24 +11,40 @@ # # License:: MIT license -require 'uri/common' - class Imdb - IMDB = "http://us.imdb.com" - TITLE_OR_NAME_MATCH = /]*)>([^<]*)<\/a>/ - TITLE_MATCH = /]*)>([^<]*)<\/a>/ - NAME_MATCH = /]*)>([^<]*)<\/a>/ + IMDB = "http://www.imdb.com" + TITLE_OR_NAME_MATCH = /]*)>([^<]*)<\/a>/ + TITLE_MATCH = /]*)>([^<]*)<\/a>/ + NAME_MATCH = /]*)>([^<]*)<\/a>/ + CHAR_MATCH = /]*)>([^<]*)<\/a>/ + CREDIT_NAME_MATCH = /#{NAME_MATCH}\s*<\/td>\s*