From 87cadac2d6a780f5318ea0a5085464dee62ea557 Mon Sep 17 00:00:00 2001 From: DeSqBlocki Date: Sun, 7 Dec 2025 12:19:41 +0100 Subject: [PATCH] added more error handling --- queue_worker.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/queue_worker.js b/queue_worker.js index a668fac..4e19f1d 100644 --- a/queue_worker.js +++ b/queue_worker.js @@ -55,11 +55,23 @@ async function runJob(job) { // ========== CAPTCHA / ERROR DETECTION ========== const suspicious = exitCode !== 0 || + // general output.toLowerCase().includes("captcha") || output.toLowerCase().includes("403") || output.toLowerCase().includes("blocked") || output.toLowerCase().includes("token") || - output.toLowerCase().includes("forbidden"); + output.toLowerCase().includes("forbidden") || + + // proxer_utils.py - get_embed_url() + output.toLowerCase().includes("Failed to fetch episode page") || + output.toLowerCase().includes("Embed code not found in page content") || + + // proxer_utils.py - get_mp4_url() + output.toLowerCase().includes("Failed to fetch embed page") || + output.toLowerCase().includes("MP4 URL not found in embed page") || + + // proxer_utils.py - download_mp4() + output.toLowerCase().includes("Failed to start download"); if (suspicious) { console.log("⛔ CAPTCHA or fatal error detected, notifying system");