fix: android player_client'ı kaldır, sadece cookie + web client kullan
Cookie tek başına bot-check'i çözüyordu ama android client ile birlikte kullanılınca "No video formats found" hatası sürekli tekrarladı — android client + cookie kombinasyonu tutarsız bir manifest döndürüyor gibi. android client'sız, sadece cookie + varsayılan web client + bestvideo+bestaudio/best format seçiciyle aynı video id lokal olarak sorunsuz çözüldü. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,6 @@ async function runCapture(job: Job<StreamIngestJob>): Promise<void> {
|
|||||||
const ytdlp = spawn(
|
const ytdlp = spawn(
|
||||||
"yt-dlp",
|
"yt-dlp",
|
||||||
[
|
[
|
||||||
"--extractor-args", "youtube:player_client=android",
|
|
||||||
...ytdlpCookieArgs(),
|
...ytdlpCookieArgs(),
|
||||||
"-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl,
|
"-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ async function findLiveVideoId(channelId: string): Promise<string | null> {
|
|||||||
[
|
[
|
||||||
"--simulate",
|
"--simulate",
|
||||||
"--no-warnings",
|
"--no-warnings",
|
||||||
"--extractor-args", "youtube:player_client=android",
|
|
||||||
...ytdlpCookieArgs(),
|
...ytdlpCookieArgs(),
|
||||||
"-f", "bestvideo+bestaudio/best",
|
"-f", "bestvideo+bestaudio/best",
|
||||||
"--print", "%(id)s",
|
"--print", "%(id)s",
|
||||||
|
|||||||
Reference in New Issue
Block a user