fix: buyuk/populer kanallarda bot-check duvari icin player_client fallback zinciri ekle (web,mweb,android)
This commit is contained in:
@@ -34,6 +34,13 @@ export async function ytdlpAntiBotArgs(): Promise<string[]> {
|
|||||||
args.push("--extractor-args", `youtubepot-bgutilhttp:base_url=${env.ytdlpPotProviderUrl}`);
|
args.push("--extractor-args", `youtubepot-bgutilhttp:base_url=${env.ytdlpPotProviderUrl}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Büyük/popüler kanallarda (ör. NASA, çok izleyicili yayınlar) sade "web"
|
||||||
|
// client'ı cookie+PO-token kombinasyonuna rağmen "Sign in to confirm
|
||||||
|
// you're not a bot" ile tıkanabiliyor — küçük kanallarda aynı kombinasyon
|
||||||
|
// sorunsuz çalışıyor. mweb/android'i cookie-uyumlu fallback olarak
|
||||||
|
// ekleyip yt-dlp'nin ilk başarılı client'ı kullanmasını sağlıyoruz.
|
||||||
|
args.push("--extractor-args", "youtube:player_client=web,mweb,android");
|
||||||
|
|
||||||
if (env.proxyUrl) {
|
if (env.proxyUrl) {
|
||||||
args.push("--proxy", env.proxyUrl);
|
args.push("--proxy", env.proxyUrl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user