lib/scrapers/xkcd.rb in scrapers-0.4.1 vs lib/scrapers/xkcd.rb in scrapers-0.4.2
- old
+ new
@@ -28,11 +28,11 @@
results[:url] = url.to_s
doc = Nokogiri::HTML(open(url.to_s))
comic = doc.at_css("#comic img")
results[:img_src] = comic.attr("src")
- results[:hover_text] = comic.attr("title")
- results[:title] = comic.attr("alt")
+ results[:img_title] = comic.attr("title")
+ results[:title] = results[:img_alt] = comic.attr("alt")
results[:pubdate] = get_pubdate(results[:img_src])
results
end