debug: canlı-tespit için detaylı teşhis bilgisi ekle

Cookie header'ı eklemek beklenen sonucu vermedi — @ertemsener kanalı
gerçekten canlıydı ama sistem hâlâ "değil" diyordu. Kör tahminle
devam etmek yerine, her kontrolde (sonuç ne olursa olsun) final URL,
HTML uzunluğu, cookie gönderilip gönderilmediği, videoDetails bulunup
bulunmadığı ve consent formu varlığı GET /status'ta lastPollDebug
alanında görünür kılındı.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 20:01:58 +03:00
co-authored by Claude Sonnet 5
parent 32c09de896
commit 5447a8d269
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
import { prisma } from "@streamclipper/db";
import { env } from "./env";
import { lastPollErrors } from "./youtubePolling";
import { lastPollErrors, lastPollDebug } from "./youtubePolling";
import { lastCaptureDebug } from "./capture/streamIngest";
export function startServer() {
@@ -29,6 +29,7 @@ export function startServer() {
recording: c.sessions.length > 0,
activeSessionId: c.sessions[0]?.id ?? null,
lastPollError: lastPollErrors.get(c.channelId) ?? null,
lastPollDebug: lastPollDebug.get(c.channelId) ?? null,
})),
});
});