<template name="oembedSpotifyWidget">
	{{#if parsedUrl}}
		<blockquote class="background-transparent-darker-before">
			<a href="https://www.spotify.com" rel="noopener noreferrer" style="color: #9e9ea6">Spotify</a><br/>
			{{#if match meta.ogAudio "spotify:artist:\\S+"}}
				<a rel="noopener noreferrer" href="{{url}}">{{{meta.ogTitle}}}</a>
			{{else}}
				<a rel="noopener noreferrer" href="{{url}}">{{{replace meta.ogDescription ", an? (?:song|album) by (.+?) on Spotify" " - $1" regex=true}}}</a>
			{{/if}}
			{{#if collapsed}}
				<span class="collapse-switch icon-right-dir" data-url="{{url}}" data-collapsed="{{collapsed}}"></span>
			{{else}}
				<span class="collapse-switch icon-down-dir" data-url="{{url}}" data-collapsed="{{collapsed}}"></span>
				<iframe width="300" height="380" src="https://embed.spotify.com/?uri={{url}}" rel="noopener noreferrer" frameborder="0"></iframe><br/>
			{{/if}}
		</blockquote>
	{{/if}}
</template>
