diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 0bb080cf..91d546bd 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -89,7 +89,7 @@ v-t="`actions.${showDesc ? 'minimize_description' : 'show_description'}`" /> -

+

(elem.outerHTML = elem.getAttribute("href"))); + xmlDoc.querySelectorAll("br").forEach(elem => (elem.outerHTML = "\n")); + this.video.description = this.urlify(xmlDoc.querySelector("body").innerHTML) .replaceAll(/(?:http(?:s)?:\/\/)?(?:www\.)?youtube\.com(\/[/a-zA-Z0-9?=&]*)/gm, "$1") .replaceAll( /(?:http(?:s)?:\/\/)?(?:www\.)?youtu\.be\/(?:watch\?v=)?([/a-zA-Z0-9?=&]*)/gm,