diff --git a/src/client/app/common/views/components/url-preview.vue b/src/client/app/common/views/components/url-preview.vue index 1e625f69e..2c265a9a7 100644 --- a/src/client/app/common/views/components/url-preview.vue +++ b/src/client/app/common/views/components/url-preview.vue @@ -2,6 +2,9 @@ +
@@ -60,6 +63,8 @@ export default Vue.extend({ this.youtubeId = url.searchParams.get('v'); } else if (url.hostname == 'youtu.be') { this.youtubeId = url.pathname; + } else if (url.hostname == 'open.spotify.com') { + this.spotifyId = url.pathname.split('/').reverse().filter(x => x !== '')[0]; } else if (this.detail && url.hostname == 'twitter.com' && /^\/.+\/status(es)?\/\d+/.test(url.pathname)) { this.tweetUrl = url; const twttr = (window as any).twttr || {};