twlite / discord-ytdl-core

Simple ytdl wrapper for discord bots with custom ffmpeg args support.
https://www.npmjs.com/package/discord-ytdl-core
Apache License 2.0
52 stars 10 forks source link

Task: emit errors to outputStream #21

Closed jamesdools closed 3 years ago

jamesdools commented 3 years ago

Hey there - a quick fix to (partially) address https://github.com/DevSnowflake/discord-ytdl-core/issues/20

Opened an issue in prism-media and touched base with Amish here: https://github.com/amishshah/prism-media/issues/67#issuecomment-803407427

Tested locally and while it doesn't stop the error being thrown, we can at least now catch it and not crash the process.

Might be some optimisations possible as well, as Amish has mentioned.