From 2a97dbbb1febb5c58823f108441fce374f68e884 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 4 Oct 2013 03:39:55 -0700 Subject: [PATCH] fix amazon onebox to pull images again --- lib/oneboxer/amazon_onebox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oneboxer/amazon_onebox.rb b/lib/oneboxer/amazon_onebox.rb index a31bddbc3a..0a5c731e89 100644 --- a/lib/oneboxer/amazon_onebox.rb +++ b/lib/oneboxer/amazon_onebox.rb @@ -28,7 +28,7 @@ module Oneboxer result[:title] = html_doc.at("h1") result[:title] = result[:title].inner_html if result[:title].present? - image = html_doc.at(".main-image img") + image = html_doc.at(".a-image-wrapper img") result[:image] = image['src'] if image result[:by_info] = html_doc.at("#by-line")