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:
@@ -77,7 +77,7 @@ async function runCapture(job: Job<StreamIngestJob>): Promise<void> {
|
||||
[
|
||||
"--extractor-args", "youtube:player_client=android",
|
||||
...ytdlpCookieArgs(),
|
||||
"-f", "best", "-o", "-", youtubeUrl,
|
||||
"-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl,
|
||||
],
|
||||
{ stdio: ["ignore", "pipe", "pipe"] },
|
||||
);
|
||||
|
||||
@@ -34,6 +34,7 @@ async function findLiveVideoId(channelId: string): Promise<string | null> {
|
||||
"--no-warnings",
|
||||
"--extractor-args", "youtube:player_client=android",
|
||||
...ytdlpCookieArgs(),
|
||||
"-f", "bestvideo+bestaudio/best",
|
||||
"--print", "%(id)s",
|
||||
liveUrl,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user