I'm using ytdl-core for a bot on Discord and all the videos that put so much to play the music receive this error in the terminal:

Can you help me?
there's a ReferenceError there. is that the issue?
I only get this occasionally and when I check the link provided, either the video is removed or its restricted by country.
So make sure your links work first.
This is a typo. connection is the correct variable
Oh, and this (YTDL) will be deprecated soon due to legal reasons, but there are other packages available.
Oh, and this (YTDL) will be deprecated soon due to legal reasons, but there are other packages available.
boy you know sth even the devs don't know
Oh, and this (YTDL) will be deprecated soon due to legal reasons, but there are other packages available.
no
Oh, and this (YTDL) will be deprecated soon due to legal reasons, but there are other packages available.
that's youtube-dl, and it's actually reinstated, proof: https://github.com/ytdl-org/youtube-dl and https://github.blog/2020-11-16-standing-up-for-developers-youtube-dl-is-back/, and, ytdl-core with youtube-dl it's not that related, I'm not saying it's impossible, though
Most helpful comment
boy you know sth even the devs don't know