fix live detection...

This commit is contained in:
localhost 2026-01-24 23:26:17 +01:00
parent 52f3506457
commit 4b4484740a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ app.get('/video/:id', async (req, res) => {
if (info.playabilityStatus!.status !== 'OK') {
return res.json({ error: 'ErrorYTUnavailable' })
}
if (info.videoDetails.isLiveContent) {
if (info.videoDetails.isLive) {
return res.json({ error: 'ErrorLiveVideo' })
}
if (info.videoDetails.title == 'Video Not Available') {