lib/onebox/engine/bandcamp_onebox.rb in onebox-1.7.4 vs lib/onebox/engine/bandcamp_onebox.rb in onebox-1.7.5
- old
+ new
@@ -2,10 +2,10 @@
module Engine
class BandCampOnebox
include Engine
include StandardEmbed
- matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/album\//)
+ 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])