fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.5k stars 795 forks source link

Error: input stream: Could not find player config #757

Closed thestevexyz closed 3 years ago

thestevexyz commented 3 years ago

Hello,

I'm using ytdl-core in my Discord bot which worked fine for a long time. I noticed yesterday, that it didn't work anymore, tried upgrading to the newest version but does still throw the same error. Since Youtube must've changed something many services like NewPipe didn't work anymore. For example NewPipe had the exact same error message saying that the player config couldn't be found and in their latest release yesterday, they finally fixed it. A link to their issue can be found here. Maybe it's easier for you to fix it given this.

The exception occurres in ytdl-core/lib/info.js at exports.getBasicInfo. So it's most likely it's a problem with ytdl-core. Here's the stacktrace: Error: input stream: Could not find player config at exports.getBasicInfo (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:59:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Object.exports.<computed> [as getBasicInfo] (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:297:18) at async exports.getFullInfo (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:188:14) at async Object.exports.<computed> [as getFullInfo] (/home/discord/bots/symphony/node_modules/ytdl-core/lib/info.js:297:18)

Running latest ytdl-core on: Node v12.14.0 with NPM v6.13.4 on Ubuntu 18.04

IH4xx3R commented 3 years ago

Update to version 4.0.0 -> check your package.json -> "ytdl-core": "^4.0.0" -> run npm install

thestevexyz commented 3 years ago

Thank you, this resolved the problem.