lib/onebox/engine/bandcamp_onebox.rb in onebox-1.8.79 vs lib/onebox/engine/bandcamp_onebox.rb in onebox-1.8.80

- old
+ new

@@ -7,22 +7,20 @@ matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/(album|track)\//) always_https def placeholder_html og = get_opengraph - escaped_src = ::Onebox::Helpers.normalize_url_for_output(og[:image]) - "<img src='#{escaped_src}' height='#{og[:video_height]}' #{Helpers.title_attr(og)}>" + "<img src='#{og.image}' height='#{og.video_height}' #{og.title_attr}>" end def to_html og = get_opengraph - src = og[:video_secure_url] || og[:video] - escaped_src = ::Onebox::Helpers.normalize_url_for_output(src) + escaped_src = og.video_secure_url || og.video <<-HTML <iframe src="#{escaped_src}" - width="#{og[:video_width]}" - height="#{og[:video_height]}" + width="#{og.video_width}" + height="#{og.video_height}" scrolling="no" frameborder="0" allowfullscreen> </iframe> HTML