node-ytdl-core: "Could not find player config"
Stack trace:
1|communit | at exports.getBasicInfo (/home/jameshawkins/community-bot/node_modules/ytdl-core/lib/info.js:90:13)
1|communit | at runMicrotasks (<anonymous>)
1|communit | at processTicksAndRejections (internal/process/task_queues.js:97:5)
1|communit | at async Map.getOrSet (/home/jameshawkins/community-bot/node_modules/ytdl-core/lib/cache.js:24:19)
1|communit | at async exports.getInfo (/home/jameshawkins/community-bot/node_modules/ytdl-core/lib/info.js:215:14)
1|communit | at async Map.getOrSet (/home/jameshawkins/community-bot/node_modules/ytdl-core/lib/cache.js:24:19)
Related code:
const dispatcher = this.connection.play(ytdl(`https://youtube.com/watch?v=${this.playlist[this.currentIndex].id}`, {
filter: "audioonly",
highWaterMark: 1024 * 1024 * 10
}));
This error has started occurring on videos that worked perfectly previously.
Thanks in advance for any help.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 37 (5 by maintainers)
Commits related to this issue
- fix: fix "Could not find player config" error in age restricted videos fixes #690 — committed to yyoutubee/node-ytdl-core by fent 4 years ago
- Could not find player config #690 see https://github.com/fent/node-ytdl-core/issues/690 — committed to maxill1/JukeReSTainer by maxill1 4 years ago
- Update dependencies for ytdl-core-discord fix Helps to mitigate issues like https://github.com/fent/node-ytdl-core/issues/690. Still see strange behavior, but it's improved overall success rate. Upd... — committed to nhancox/discordatron by nhancox 4 years ago
- fix: fix "Could not find player config" error in age restricted videos fixes #690 — committed to keeptpa/node-ytdl-core by fent 4 years ago
Same here.
Update to YTDL 3.4+ that is fixed in a merge or latest which is 4.00
npm i ytdl-core@latest
is a decent way of doing itinternally, ytdl-core extracts the id out of whatever url format its given. so this wouldn’t matter.
Fixed:
npm update ytdl-core
npm update ytdl-core-discord
daily tests show this too https://github.com/fent/node-ytdl-core/runs/1005506799
this is happening on age restricted videos