fix: yt-dlp format seçicisini bestvideo+bestaudio/best'e çevir

Cookie bot-check'i çözdü ama yeni bir hata çıktı: "No video formats
found" / "Requested format is not available". AyrisTech'in canlı
yayını dikey (1080x1920) ve HLS formatları video-only/audio-only
ayrı geliyor — tek parça "best" format hiç yok. Hem live-check hem
capture çağrısını "bestvideo+bestaudio/best" seçicisine çevirdik;
lokal olarak doğrulandı (yt-dlp video id'yi doğru döndürüyor).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 16:24:12 +03:00
co-authored by Claude Sonnet 5
parent 09b958ec00
commit ab7b1551cc
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ async function runCapture(job: Job<StreamIngestJob>): Promise<void> {
[ [
"--extractor-args", "youtube:player_client=android", "--extractor-args", "youtube:player_client=android",
...ytdlpCookieArgs(), ...ytdlpCookieArgs(),
"-f", "best", "-o", "-", youtubeUrl, "-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl,
], ],
{ stdio: ["ignore", "pipe", "pipe"] }, { stdio: ["ignore", "pipe", "pipe"] },
); );
+1
View File
@@ -34,6 +34,7 @@ async function findLiveVideoId(channelId: string): Promise<string | null> {
"--no-warnings", "--no-warnings",
"--extractor-args", "youtube:player_client=android", "--extractor-args", "youtube:player_client=android",
...ytdlpCookieArgs(), ...ytdlpCookieArgs(),
"-f", "bestvideo+bestaudio/best",
"--print", "%(id)s", "--print", "%(id)s",
liveUrl, liveUrl,
], ],