phase 1 rework

This commit is contained in:
admin_rb committed 2026-10-23 16:38:55 +02:00
1 parent 211bfd174d
commit 20054198f3
38 files changed
+5001 -1019

No files matched your search

+9 -3
View File
@@ -11,10 +11,12 @@
<body>
<!-- CAPTCHA ALERT (initially hidden, will be toggled by JS) -->
<div id="captcha-alert" class="alert alert-danger text-center m-0" style="display: <%= (global && global.captcha_blocked) ? 'block' : 'none' %>;">
⚠ Human Action Required: Proxer CAPTCHA triggered. Workers paused until cleared.
<div id="captcha-alert" class="alert alert-danger text-center m-0" style="display: <%= (typeof global !== 'undefined' && global.captcha_blocked) ? 'block' : 'none' %>;">
<span id="captcha-message"><%= (typeof global !== 'undefined' && global.pause_reason === 'resolution')
? '⚠ The video link could not be resolved. Possible causes include CAPTCHA or login verification, an unavailable video, or a source change. Workers are paused for verification.'
: '⚠ Authentication or access needs verification on Proxer. Workers are paused until verification is complete.' %></span>
<form id="clear-captcha-form" action="/clear-captcha" method="POST" class="d-inline ms-2">
<button class="btn btn-danger btn-sm">⚠ Clear CAPTCHA</button>
<button class="btn btn-danger btn-sm">Resume after verification</button>
</form>
</div>
<div class="container-fluid py-4" style="max-width: 2000px;">
@@ -34,8 +36,12 @@
const res = await fetch('/status-data', { cache: 'no-store' });
const data = await res.json();
const alertEl = document.getElementById('captcha-alert');
const messageEl = document.getElementById('captcha-message');
if (data.global && data.global.captcha_blocked) {
messageEl.textContent = data.global.pause_reason === 'resolution'
? '⚠ The video link could not be resolved. Possible causes include CAPTCHA or login verification, an unavailable video, or a source change. Workers are paused for verification.'
: '⚠ Authentication or access needs verification on Proxer. Workers are paused until verification is complete.';
alertEl.style.display = 'block';
} else {
alertEl.style.display = 'none';