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");