lib/libri/scraper.rb in libri-0.2.7 vs lib/libri/scraper.rb in libri-0.2.8
- old
+ new
@@ -61,10 +61,10 @@
quote_hash = {}
quotes_array = quote_section.map { |quote|
quote_hash = {
:quote => quote.css("div.quoteText").first.text.scan(/(“.+”)/).join(""),
- :author => quote.css("div.quoteText a").first.text
+ :author => quote.css("div.quoteText span.authorOrTitle").first.text
}
}
Libri::Quote.create_from_collection(quotes_array)
end