Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Commit

Permalink
Fixing tradus.in parsing, thanks to report by Manu J
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopch committed Jul 29, 2011
1 parent df95014 commit dbcc3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bookprice.rb
Expand Up @@ -190,7 +190,7 @@ def search_tradus(isbn)
url = "http://www.tradus.in/search/tradus_search/#{isbn}"
page = self.fetch_page(url)
unless page.nil?
text = page.search("div.search_price_col label").text
text = page.search("div.productPrice").try(:first).try(:text) or ""
{ :price => find_price_at_end(text), :url => url }
else
{ :price => NOT_AVAILABLE, :url => url }
Expand Down

0 comments on commit dbcc3ba

Please sign in to comment.