Ayeven

Results 5 comments of Ayeven

It is the api that used by the game client. The endpoint is diferrent from web browser. The data response are diferrent too.

That quite fast response, here is the line https://github.com/Ayeven/generic-bot/blob/c87589523aefc7b87c0a95959b51239285b89698/base/track.js#L86 which I can't extract info from url link. I console log it, return empty array. The music is correctly playing the...

` if ((url.startsWith('https://www.youtube.com/')) || (url.startsWith('https://youtu.be')) || (url.startsWith('https://m.youtube.com'))) { const yt = await ytsr.search(url); console.log(yt); info = yt.videos[0].title ?? 'Unknown Track'; }` Yeah, found the issue now, sorry to bug you,...

![image](https://user-images.githubusercontent.com/10782269/124626004-e1de8880-deb0-11eb-8901-26e8d65af293.png) Sometime it able to capture the title

` let info = ''; if ((url.startsWith('https://www.youtube.com/')) || (url.startsWith('https://youtu.be')) || (url.startsWith('https://m.youtube.com'))) { const yt = new Scraper(); const ytsr = await yt.search(id || url); info = ytsr.videos[0]?.title ?? 'Unknown Track';...