Youtube video url regex doesn't include recorded live stream
nezort11 opened this issue · comments
Yegor Zorin commented
console.log(getURLVideoID("https://youtu.be/c5nv6vIG3OQ")); // works
console.log(getURLVideoID("https://www.youtube.com/live/IZNSfrY8GQM")); // error
Error: No video id found: "https://www.youtube.com/live/IZNSfrY8GQM"
at getURLVideoID (/project/home/nezort11/workspace/src/index.ts:25:11)
https://github.com/fent/node-ytdl-core/blob/master/lib/url-utils.js#L25-L26