yet another small fix.
This commit is contained in:
parent
1ac5354843
commit
29093d92b7
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ Client.register_trigger("PRIVMSG") do |msg|
|
|||
url = Digest::MD5.hexdigest(word)
|
||||
end
|
||||
|
||||
title = Nokogiri::HTML(open(word).read(10240)).title().gsub(/[\s]+/, " ").strip
|
||||
title = Nokogiri::HTML(open(word).read(10240)).title()
|
||||
title = title.gsub(/[\s]+/, " ").strip if not title.nil?
|
||||
|
||||
Scrape::Link.create(
|
||||
:url => url,
|
||||
|
|
Loading…
Reference in a new issue