forgot how my own code works

This commit is contained in:
localhost 2026-03-02 17:54:35 +01:00
parent e479eac246
commit ec94d4b441
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ app.ws('/save', {
(data.microformat.playerMicroformatRenderer.description?.simpleText || '').replaceAll('\n', '<br>')) (data.microformat.playerMicroformatRenderer.description?.simpleText || '').replaceAll('\n', '<br>'))
if (slopScore >= 4) { if (slopScore >= 4) {
sendError(ws, 'Filters can always be wrong. Is the rating wrong? Email me at admin@preservetube.com'); sendError(ws, 'Filters can always be wrong. Is the rating wrong? Email me at admin@preservetube.com', false);
return sendError(ws, 'Your download has been rejected by our slop filter.'); return sendError(ws, 'Your download has been rejected by our slop filter.');
} }
@ -214,7 +214,7 @@ app.ws('/savechannel', {
const slopScore = await parseSlop(video.video_id, video.title.text, video.description_snippet.text) const slopScore = await parseSlop(video.video_id, video.title.text, video.description_snippet.text)
if (slopScore >= 4) { if (slopScore >= 4) {
sendError(ws, 'Filters can always be wrong. Is the rating wrong? Email me at admin@preservetube.com'); sendError(ws, 'Filters can always be wrong. Is the rating wrong? Email me at admin@preservetube.com', false);
sendError(ws, 'Your download has been rejected by our slop filter.'); sendError(ws, 'Your download has been rejected by our slop filter.');
continue; continue;
} }