diff --git a/js&css/web-accessible/www.youtube.com/player.js b/js&css/web-accessible/www.youtube.com/player.js index 156c3d71a..5ed41867b 100644 --- a/js&css/web-accessible/www.youtube.com/player.js +++ b/js&css/web-accessible/www.youtube.com/player.js @@ -202,7 +202,7 @@ if (title && title !== 'YouTube') { else { keywords = ''; (async function () { try { const response = await fetch(`https://www.youtube.com/watch?v=${DATA.videoID}`); console.log("loading the html source:" + `https://www.youtube.com/watch?v=${DATA.videoID}`); const htmlContent = await response.text(); - const metaRegex = /]+(name|itemprop)=["'](keywords|genre|duration)["'][^>]+content=["']([^"']+)["'][^>]*>/gi; + const metaRegex = /]+(?:name|itemprop)=["'](keywords|genre|duration|title)["'][^>]+content=["']([^"']+)["'][^>]*>/gi; let match; while ((match = metaRegex.exec(htmlContent)) !== null) { // console.log(match); const [, property, value] = match; if (property === 'keywords') { keywords = value;} else {DATA[property] = value;}