diff --git a/config/initializers/05-string.rb b/config/initializers/05-string.rb index 535ed86..97f76d3 100644 --- a/config/initializers/05-string.rb +++ b/config/initializers/05-string.rb @@ -179,8 +179,10 @@ def embed_html(request=nil) height = set ? 450 : 166 "" end - elsif %r{^https?://(?:open|play)\.spotify\.com/(?[^?#]+)} =~ self - "" + elsif %r{^https?://(?:open|play)\.spotify\.com/(?:embed\/)?(?[^?#]+)} =~ self + # https://open.spotify.com/artist/6S2tas4z6DyIklBajDqJxI + # https://open.spotify.com/show/1VXcH8QHkjRcTCEd88U3ti + "" elsif %r{^https?://sverigesradio\.se/artikel/(?\d+)} =~ self "" elsif %r{^https?://gfycat\.com/(?:gifs/detail/)?(?[^@\/?#]+)} =~ self