Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
Merge f089a99 into aebe158
Browse files Browse the repository at this point in the history
  • Loading branch information
refaelos committed Mar 30, 2017
2 parents aebe158 + f089a99 commit c921f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/market_bot/play/app.rb
Expand Up @@ -42,9 +42,9 @@ def self.parse(html, opts={})
end
end

result[:content_rating] = doc.at_css("div.content[itemprop='contentRating']").text
result[:content_rating] = doc.at_css("div.content[itemprop='contentRating']").text if doc.at_css("div.content[itemprop='contentRating']")

result[:price] = doc.at_css('meta[itemprop="price"]')[:content]
result[:price] = doc.at_css('meta[itemprop="price"]')[:content] if doc.at_css('meta[itemprop="price"]')

category_div = doc.at_css('.category')
result[:category] = category_div.text.strip
Expand Down

0 comments on commit c921f66

Please sign in to comment.