From 4b4484740a1999934dd575d830a72cecdb78c5f2 Mon Sep 17 00:00:00 2001 From: localhost Date: Sat, 24 Jan 2026 23:26:17 +0100 Subject: [PATCH] fix live detection... --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index b856bfb..2bc6cd2 100644 --- a/index.ts +++ b/index.ts @@ -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') {