feat: YouTube cookie'lerini panelden yönetilebilir hale getir

Cookie'ler saatler içinde eskiyordu, her seferinde manuel Coolify env
güncellemesi + redeploy gerekiyordu. Artık DB'de (app_settings tablosu)
tutuluyor; /settings sayfasından yeni cookies.txt yapıştırılıp
kaydedilebiliyor, bir sonraki yt-dlp çağrısında redeploy gerekmeden
devreye giriyor. YTDLP_COOKIES_B64 env var mekanizması kaldırıldı.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 19:13:10 +03:00
co-authored by Claude Sonnet 5
parent d562c05882
commit 5e211096c5
11 changed files with 117 additions and 22 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ async function findLiveVideoId(channelId: string): Promise<string | null> {
try {
const { stdout } = await execFileAsync(
"yt-dlp",
["--simulate", "--no-warnings", ...ytdlpAntiBotArgs(), "--print", "%(id)s", liveUrl],
["--simulate", "--no-warnings", ...(await ytdlpAntiBotArgs()), "--print", "%(id)s", liveUrl],
{ timeout: 20_000 },
);
lastPollErrors.delete(channelId);