Open MyDapitt opened 1 month ago
I have installed the extension and logged into my youtube. Which cookies should I take?
using cookie editor get the cookies as NetScape.
const cookiesString = `name=value;name=value;`
const cookies = CookiesString.split(';').map(cookie => {
const [name, ...value] = cookie.split('=');
return {
name: name.trim(),
value: value.join('=').trim(),
};
});
// console.log(cookies);
const agentOptions = {
pipelining: 5,
maxRedirections: 10,
};
// agent should be created once if you don't want to change your cookie
const agent = ytdl.createAgent(cookies, agentOptions);
how use the agent with your request like this .
const res = await ytdl.getInfo(url,{agent});
This should solve Sign in problem
@ybd-project/ytdl-core I have now released ytdl-core with the ability to specify poToken and visitorData. The iOS and Android players are experiencing bot errors, but we have been able to work around this by using the Web Creator player. These issues are being improved, so please wait. We are looking forward to receiving reports of issues.
@ybd-project/ytdl-core Agora lancei ytdl-core com a capacidade de especificar poToken e visitorData. Os players de iOS e Android estão enfrentando erros de bot, mas conseguimos contornar isso usando o player Web Creator. Esses problemas estão sendo aprimorados, portanto, aguarde. Estamos ansiosos para receber relatórios de problemas.
Envie aqui a função adaptada pra uso
Describe the bug
In version 4.14.3, there was an error: sign in to confirm you're not a robot. This case same in version 4.14.4
Debug File
Environment