From f3ee63fcbed85a357429e3639bdd82ca01c8c994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Wed, 12 Dec 2018 21:19:52 +0900 Subject: [PATCH] Update url-preview.vue (#3602) --- src/client/app/common/views/components/url-preview.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/app/common/views/components/url-preview.vue b/src/client/app/common/views/components/url-preview.vue index 86489cf8be..2cd0f8a745 100644 --- a/src/client/app/common/views/components/url-preview.vue +++ b/src/client/app/common/views/components/url-preview.vue @@ -170,6 +170,9 @@ export default Vue.extend({ return; } + if (url.hostname === 'music.youtube.com') + url.hostname = 'youtube.com'; + fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => { res.json().then(info => { if (info.url == null) return;