From 55d69868b4a8e66c8d36c648aea3bfe52f9adf8b Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 5 Aug 2023 12:34:41 +0000 Subject: [PATCH] Update src/components/WatchVideo.vue --- src/components/WatchVideo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 624cf67f..b1f6aea8 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -463,7 +463,7 @@ export default { if (!this.isEmbed) this.fetchSubscribedStatus(); const parser = new DOMParser(); - const xmlDoc = parser.parseFromString(this.video.description, "text/html"); + const xmlDoc = parser.parseFromString(this.video.description, "text/html"); xmlDoc.querySelectorAll("a").forEach(elem => { if (!elem.innerText.match(/(?:[\d]{1,2}:)?(?:[\d]{1,2}):(?:[\d]{1,2})/)) elem.outerHTML = elem.getAttribute("href").replace(/https:\/\/www\.youtube\.com\/watch\?v=/, "/watch?v=");