fix youtube link regexp

This commit is contained in:
FullGreaM 2025-11-09 15:33:52 +03:00
parent 3e400cea39
commit 2c01fe389d

View File

@ -31,7 +31,7 @@ function removeTemp () {
}
removeTemp();
const ytLinkRegexp = /^https:\/\/www\.youtube\.com/m;
const ytLinkRegexp = /^https:\/\/(www\.|m\.|)youtu(be\.com|\.be)/m;
async function getFileSize(pathname) {
const stream = fs.createReadStream(pathname);