add further debugger logging

This commit is contained in:
localhost 2026-03-07 20:30:02 +01:00
parent 4afe15a715
commit 30c8aaeb91
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,7 @@ app.ws('/save', {
return sendError(ws, 'You have been ratelimited. </br>Is this an urgent archive? Please email me: admin@preservetube.com'); return sendError(ws, 'You have been ratelimited. </br>Is this an urgent archive? Please email me: admin@preservetube.com');
} }
console.log(`saving (${hash}) - ${ws.data.path} - ${JSON.stringify(ws.data.query)}`)
ws.send('DATA - This process is automatic. Your video will start archiving shortly.') ws.send('DATA - This process is automatic. Your video will start archiving shortly.')
ws.send('CAPTCHA - Solving a cryptographic challenge before downloading.') ws.send('CAPTCHA - Solving a cryptographic challenge before downloading.')
videoIds[ws.id] = videoId videoIds[ws.id] = videoId
@ -239,6 +240,8 @@ app.ws('/savechannel', {
break; break;
} }
console.log(`saving (${hash}) - ${ws.data.path} - ${video.video_id}`)
const isSlop = await parseSlop(video.video_id, video.title.text, const isSlop = await parseSlop(video.video_id, video.title.text,
video.description_snippet?.text || '', channelId) video.description_snippet?.text || '', channelId)