message that its validated

This commit is contained in:
localhost 2025-09-24 19:33:39 +02:00
parent d17b145d5c
commit ce7bb54f8c
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,8 @@ app.ws('/save', {
if (!(await checkCaptcha(message))) {
await cleanup(ws, videoId);
return sendError(ws, 'Captcha validation failed.');
} else {
ws.send('DATA - Captcha validated. Starting download...');
}
const downloadResult = await downloadVideo(ws, videoId);
@ -144,6 +146,8 @@ app.ws('/savechannel', {
if (!(await checkCaptcha(message))) {
await cleanup(ws, channelId);
return sendError(ws, 'Captcha validation failed.');
} else {
ws.send('DATA - Captcha validated. Starting download...');
}
videoIds[ws.id] = `downloading-${channelId}`;