limit url size.
parent
ae15105961
commit
28277cb42e
|
@ -42,7 +42,7 @@ Client.register_trigger("PRIVMSG") do |msg|
|
||||||
url = Digest::MD5.hexdigest(word)
|
url = Digest::MD5.hexdigest(word)
|
||||||
end
|
end
|
||||||
|
|
||||||
title = Nokogiri::HTML(open(word).read).title().split(/\n/)[0]
|
title = Nokogiri::HTML(open(word).read(10240).title().split(/\n/)[0][
|
||||||
|
|
||||||
Scrape::Link.create(
|
Scrape::Link.create(
|
||||||
:url => url,
|
:url => url,
|
||||||
|
|
Loading…
Reference in New Issue