lib/onebox/engine/amazon_onebox.rb in onebox-1.8.2 vs lib/onebox/engine/amazon_onebox.rb in onebox-1.8.3

- old
+ new

@@ -34,18 +34,18 @@ def image if (main_image = raw.css("#main-image")) && main_image.any? attributes = main_image.first.attributes - return attributes["data-a-hires"] if attributes["data-a-hires"] + return attributes["data-a-hires"].to_s if attributes["data-a-hires"] if attributes["data-a-dynamic-image"] return ::JSON.parse(attributes["data-a-dynamic-image"].value).keys.first end end if (landing_image = raw.css("#landingImage")) && landing_image.any? - landing_image.first["src"] + landing_image.first["src"].to_s end end def data result = { link: link,