fix youtube link regexp
This commit is contained in:
parent
3e400cea39
commit
2c01fe389d
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user