fix: bgutil-ytdlp-pot-provider ile PO-token duvarını aş

Cookie bot-check'i çözdü ama "The page needs to be reloaded" hatası
kalıcıydı — YouTube artık proof-of-origin token da istiyor. Coolify
stack'ine brainicism/bgutil-ytdlp-pot-provider sidecar servisi
(sc_pot_provider, port 4416) eklendi, api-daemon imajına Python
plugin'i kuruldu, her yt-dlp çağrısına
--extractor-args youtubepot-bgutilhttp:base_url=... eklendi.
ytdlpCookieArgs -> ytdlpAntiBotArgs olarak birleştirildi.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 17:12:39 +03:00
co-authored by Claude Sonnet 5
parent e5a6f67788
commit fc7d1109aa
7 changed files with 38 additions and 12 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import { prisma } from "@streamclipper/db";
import { env } from "../env";
import { QUEUE_NAMES, signalDetectionQueue, type StreamIngestJob } from "../queues";
import { redisConnection } from "../redis";
import { ytdlpCookieArgs } from "../ytdlpCookies";
import { ytdlpAntiBotArgs } from "../ytdlpCookies";
const SEGMENT_LIST_POLL_MS = 5_000;
@@ -75,7 +75,7 @@ async function runCapture(job: Job<StreamIngestJob>): Promise<void> {
const ytdlp = spawn(
"yt-dlp",
[
...ytdlpCookieArgs(),
...ytdlpAntiBotArgs(),
"-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl,
],
{ stdio: ["ignore", "pipe", "pipe"] },