fix live detection...
This commit is contained in:
parent
52f3506457
commit
4b4484740a
2
index.ts
2
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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue