-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Could not extract functions #1318
Comments
I have the same problem |
same issue here! i guess youtube changed something... |
That seems like a new bug that's showed up in the package and the general consensus for now seems to be to try the @distube/ytdl-core package instead. You can install it in place of ytdl-core like this
|
planet-bluto's solution worked for me |
Of course, the suggested option https://github.com/distubejs/ytdl-core is also good. But I migrated to https://github.com/foxesdocode/yt-dlp-wrap to have a closer connection with the yt-dlp parent program and not get bugs again. It also supports cookies jar file. |
In my project, I ended up using both- one for getting info (ytdl) and one for fetching audio data (yt-dlp)- so that's a totally valid solution. I don't remember if there was really a way to get metadata with just yt-dlp, but I didn't look into it because I didn't want to completely replace all the instances in which I did use ytdl |
I was getting this same error but fortunately stumbled upon this thread via search and the forked library worked. Good job to the guy maintaining the fork (the original ytdl-core hasn't been updated in a year) |
I have same problem. |
@planet-bluto Solution Worked for me. |
It was able to download mp4 but video is not opening |
Thanks @planet-bluto npm i ytdl-core@npm:@distube/ytdl-core Solved the problem. |
I am getting a typescript error with @planet-bluto solution. |
Same problem |
|
@planet-bluto Thanks for the solution. Note: to get the video information on YouTube I had to change the code, as it is in the repository @distube/ytdl-core |
it's working thk |
The code that was working until yesterday suddenly gives this error:
The text was updated successfully, but these errors were encountered: