Browse Source

fix videos.

Jason Schwarzenberger 4 months ago
parent
commit
5fb638e012
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/extract-metadata.js

+ 1 - 1
utils/extract-metadata.js

@@ -59,7 +59,7 @@ function cleanMarkup(html, url) {
 			.forEach(a => $e.removeAttribute(a));
 	});
 	Array.from(window.document.querySelectorAll('img,iframe'), $e => $e.setAttribute('loading', 'lazy'));
-	Array.from(window.document.querySelectorAll(':not(input,meta,br,link,img,html)'))
+	Array.from(window.document.querySelectorAll(':not(input,meta,br,link,img,video,html)'))
 		.reverse()
 		.forEach($e => !$e.children.length && !$e.textContent && $e.remove());