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:
@@ -4,7 +4,7 @@ import { prisma } from "@streamclipper/db";
|
||||
import { env } from "./env";
|
||||
import { streamIngestQueue } from "./queues";
|
||||
import { sendTelegramMessage } from "./telegram";
|
||||
import { ytdlpCookieArgs } from "./ytdlpCookies";
|
||||
import { ytdlpAntiBotArgs } from "./ytdlpCookies";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
|
||||
@@ -32,7 +32,7 @@ async function findLiveVideoId(channelId: string): Promise<string | null> {
|
||||
[
|
||||
"--simulate",
|
||||
"--no-warnings",
|
||||
...ytdlpCookieArgs(),
|
||||
...ytdlpAntiBotArgs(),
|
||||
"-f", "bestvideo+bestaudio/best",
|
||||
"--print", "%(id)s",
|
||||
liveUrl,
|
||||
|
||||
Reference in New Issue
Block a user