This commit is contained in:
localhost 2026-01-24 23:29:45 +01:00
parent 4b4484740a
commit e91a5b957a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ app.ws('/download/:id', async (ws, req) => {
if (info.playabilityStatus?.status !== 'OK') {
ws.send(`This video is not available for download (${info.playabilityStatus?.status} ${info.playabilityStatus?.reason}).`);
return ws.close()
} else if (info.videoDetails.isLiveContent) {
} else if (info.videoDetails.isLive) {
ws.send('This video is live, and cannot be downloaded.');
return ws.close()
} else if (info.videoDetails.videoId != req.params.id) {