Compare commits

...
Author SHA1 Message Date
architect 3636be5ddd [STAGE3] Alpha request handoff to Seerr
lint / hygiene (pull_request) Waiting to run
standard / check (pull_request) Waiting to run
lint / hygiene (push) Waiting to run
standard / check (push) Waiting to run
2026-11-27 11:30:11 +03:00
architect 2be898d584 [STAGE3] Tracker: direct 6/6 done
lint / hygiene (push) Waiting to run
lint / hygiene (pull_request) Waiting to run
standard / check (pull_request) Waiting to run
2026-11-27 11:29:13 +03:00
3 changed files with 39 additions and 5 deletions

No files matched your search

+2 -3
View File
@@ -44,7 +44,7 @@
| S2-07 | S2 | Gate G2 proof | done | YES | architect | 100→1; loss recovered | 1 | G2 |
| S3-01 | S3 | Аудит RU/direct-play | done | | architect | /v1/media/coverage | 0 | |
| S3-02 | S3 | RU-дорожки/субтитры | blocked | | architect | 0/7 RU; und/eng only | 1 | |
| S3-03 | S3 | Direct-play 7/7 | in_progress | | architect | 6/7 direct | 1 | |
| S3-03 | S3 | Direct-play 7/7 | done | | architect | coverage total6 direct6 | 2 | |
| S3-04 | S3 | Запрос из Alpha/Telegram/Matrix | open | | architect | pending | 0 | |
| S3-05 | S3 | Gate G3 | open | YES | architect | pending | 0 | G3 |
| U-01 | U | Approve PR #192 | done | | roman | chat approval 2026-11-26 · Открыть PR #192 и подтвердить архитектуру | 2 | none |
@@ -61,8 +61,7 @@
- S1 / done: 10
- S2 / done: 7
- S3 / blocked: 1
- S3 / done: 1
- S3 / in_progress: 1
- S3 / done: 2
- S3 / open: 2
- U / done: 2
- U / dropped: 3
+9 -1
View File
@@ -25,7 +25,7 @@ Direct-play исправлен: сериал считается по эпизо
| S3-01 | Аудит RU/direct-play | done (0/7 RU, 6/7 direct) |
| S3-02 | RU-дорожки/субтитры | blocked: нет источника RU |
| S3-03 | Direct-play 6/6 | done |
| S3-04 | Запрос из Alpha/Telegram/Matrix | open |
| S3-04 | Запрос из Alpha/Telegram/Matrix | in_progress (Alpha link done; TG/Matrix open) |
| S3-05 | Gate G3 | open |
## Проверка
@@ -39,3 +39,11 @@ http://192.168.1.10:9161/alpha/acceptance
```text
GET /v1/media/coverage
```
Запрос из Alpha:
```text
http://192.168.1.10:9161/alpha/request
```
Alpha ищет по Jellyfin; кнопка открывает Seerr. Alpha не пишет в Seerr/медиатеку.
+28 -1
View File
@@ -509,6 +509,9 @@ class H(BaseHTTPRequestHandler):
if u.path == "/acceptance":
self.out(200, PAGE_ACCEPTANCE, "text/html")
return
if u.path == "/request":
self.out(200, PAGE_REQUEST, "text/html")
return
if u.path == "/owner":
self.out(200, PAGE_OWNER, "text/html")
return
@@ -535,7 +538,7 @@ button{padding:12px 16px;border-radius:8px;border:0;background:#2f81f7;color:#ff
a{color:#58a6ff}
</style></head><body>
<h1>Buryans One Alpha</h1><div class=mut id=me>read-only</div>
<div style="margin:8px 0"><a class="card" style="display:inline-block;padding:10px 14px" href="/alpha/owner">Owner-пульт →</a> <a class="card" style="display:inline-block;padding:10px 14px" href="/alpha/acceptance">Опросник приёмки →</a></div>
<div style="margin:8px 0"><a class="card" style="display:inline-block;padding:10px 14px" href="/alpha/owner">Owner-пульт →</a> <a class="card" style="display:inline-block;padding:10px 14px" href="/alpha/acceptance">Опросник приёмки →</a> <a class="card" style="display:inline-block;padding:10px 14px" href="/alpha/request">Запросить фильм →</a></div>
<div class=grid id=status style="margin:16px 0"></div>
<div class=grid style="margin:16px 0">
<a class=card href="https://media.buryans.ru" target=_blank><h3>Jellyfin</h3><div class=tag>фильмы и сериалы</div></a>
@@ -583,6 +586,7 @@ a{color:#58a6ff}code{background:#161b22;padding:2px 5px;border-radius:4px}
<a class=big href="https://media.buryans.ru/sso/OID/start/authentik" target=_blank><h3>Войти в Jellyfin</h3><div class=tag>прямой SSO-вход, если кнопка не видна.</div></a>
<a class=big href="http://192.168.1.10:9161/" target=_blank><h3>Audit 360</h3><div class=tag>трекер, evidence, Gate G0/G1.</div></a>
<a class=big href="/alpha/acceptance"><h3>Опросник приёмки</h3><div class=tag>по каждому сервису: что нажать и что должно быть.</div></a>
<a class=big href="/alpha/request"><h3>Запросить фильм</h3><div class=tag>поиск по Jellyfin и кнопка запроса в Seerr.</div></a>
<a class=big href="http://192.168.1.10:9161/alpha/"><h3>На главную Alpha</h3><div class=tag>поиск, новинки, сервисы.</div></a>
<a class=big href="/alpha/v1/fitness" target=_blank><h3>Fitness</h3><div class=tag>18 FIT-пунктов, честные статусы.</div></a>
<a class=big href="http://192.168.1.140:3000/" target=_blank><h3>Gitea</h3><div class=tag>код, PR, решения.</div></a>
@@ -625,5 +629,28 @@ async function boot(){try{const d=await (await fetch('v1/acceptance')).json();do
boot();
</script></body></html>"""
PAGE_REQUEST = """<!doctype html><html lang=ru><head><meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<title>Запрос фильма — Buryans</title>
<style>
body{background:#0d1117;color:#e6edf3;font:16px/1.5 system-ui,Arial;margin:0;padding:28px}
h1{font-size:28px;margin:0 0 6px}.mut{color:#8b949e}
input{width:min(600px,80%);padding:12px;border-radius:8px;border:1px solid #30363d;background:#161b22;color:#e6edf3;font-size:16px}
button{padding:12px 16px;border-radius:8px;border:0;background:#2f81f7;color:#fff;font-size:16px;cursor:pointer}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:18px}
.card{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:14px}
.card h3{margin:0 0 4px;font-size:16px}.tag{color:#8b949e;font-size:13px}
a{color:#58a6ff}.warn{background:#161b22;border:1px solid #9e6a03;border-radius:10px;padding:12px;color:#d29922}
</style></head><body>
<h1>Запрос фильма</h1><div class=mut>Alpha только ищет. Запрос создаётся в Seerr, не в медиатеке.</div>
<div style="margin:16px 0"><input id=q placeholder="Название фильма или сериала..." autofocus> <button onclick="go()">Найти</button></div>
<div id=msg class=mut></div><div id=out class=grid></div>
<div class=warn style="margin-top:18px">Если запрос уже существует, Seerr покажет это сам. Дубли в Jellyfin не создаются.</div>
<script>
const e=s=>String(s??'').replace(/[&<>"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'}[c]));
async function go(){const q=document.getElementById('q').value.trim();if(!q)return;document.getElementById('msg').textContent='поиск...';const r=await fetch('v1/media/search?q='+encodeURIComponent(q));const d=await r.json();const xs=d.items||[];document.getElementById('msg').textContent=xs.length?'':'ничего не найдено';document.getElementById('out').innerHTML=xs.map(x=>`<div class=card><h3>${e(x.name)}</h3><div class=tag>${e(x.type)} ${e(x.year||'')}</div><div style="margin-top:8px"><a href="https://requests.buryans.ru/search?query=${encodeURIComponent(x.name)}" target=_blank>Запросить в Seerr →</a></div></div>`).join('')}
document.getElementById('q').addEventListener('keydown',e=>{if(e.key==='Enter')go()});
</script></body></html>"""
if __name__ == "__main__":
ThreadingHTTPServer((HOST, PORT), H).serve_forever()