From 14328a24efbef3844a2ad24379c74baa5ef7ef6a Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Wed, 11 Dec 2013 16:40:15 -0800 Subject: [PATCH] attempt to fix amazon item descriptions --- lib/oneboxer/amazon_onebox.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/oneboxer/amazon_onebox.rb b/lib/oneboxer/amazon_onebox.rb index 7814235a7dc..59d330cb5a6 100644 --- a/lib/oneboxer/amazon_onebox.rb +++ b/lib/oneboxer/amazon_onebox.rb @@ -33,7 +33,8 @@ module Oneboxer result[:by_info] = html_doc.at("#by-line") result[:by_info] = BaseOnebox.remove_whitespace(BaseOnebox.replace_tags_with_spaces(result[:by_info].inner_html)) if result[:by_info].present? - summary = html_doc.at("#description-and-details-content") + # not many CSS selectors to work with here, go with the first span in about-item ID + summary = html_doc.at("#about-item span") result[:text] = summary.inner_html if summary.present? result