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:
@@ -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"] },
|
||||
|
||||
Reference in New Issue
Block a user