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

- old
+ new

@@ -1,32 +1,32 @@ -module Onebox - module Engine - class BandCampOnebox - include Engine - include StandardEmbed - - matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/(album|track)\//) - always_https - - def placeholder_html - og = get_opengraph - "<img src='#{og.image}' height='#{og.video_height}' #{og.title_attr}>" - end - - def to_html - og = get_opengraph - escaped_src = og.video_secure_url || og.video - - <<-HTML - <iframe src="#{escaped_src}" - width="#{og.video_width}" - height="#{og.video_height}" - scrolling="no" - frameborder="0" - allowfullscreen> - </iframe> - HTML - end - - end - end -end +module Onebox + module Engine + class BandCampOnebox + include Engine + include StandardEmbed + + matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/(album|track)\//) + always_https + + def placeholder_html + og = get_opengraph + "<img src='#{og.image}' height='#{og.video_height}' #{og.title_attr}>" + end + + def to_html + og = get_opengraph + escaped_src = og.video_secure_url || og.video + + <<-HTML + <iframe src="#{escaped_src}" + width="#{og.video_width}" + height="#{og.video_height}" + scrolling="no" + frameborder="0" + allowfullscreen> + </iframe> + HTML + end + + end + end +end