-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Switch to Distube's ytdl-core fork (resolves playback issue) #1042
Switch to Distube's ytdl-core fork (resolves playback issue) #1042
Conversation
Well I just did the same, you were 30 minutes faster than me: #1044 While we are updating Node, I think we could go directly to Node 20? It is the current LTS and has been for quite a while already. |
9468cd8
to
584bb17
Compare
📦 A new release has been made for this pull request.To play around with this PR, pull Images are available for x86_64 and ARM64.
|
I'm not really sure if we could use Node 20 without updating dependencies. I am glad that the current Dockerfile now works (Debian-Bookworm had a too-new libc-bin). But I can try building the Dockerfile with Node 20. |
Yeah getting things working in the priority I guess, Node 20 can wait 😄 |
I tried building the image with Node 20, and it does not work because there are no pre-built binaries for @discordjs/opus. So Node 20 would require Python and build tools in the image. |
@@ -89,6 +89,7 @@ | |||
"@discordjs/opus": "^0.8.0", | |||
"@discordjs/rest": "1.0.1", | |||
"@discordjs/voice": "0.11.0", | |||
"@distube/ytdl-core": "^4.13.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could fix current bug in bot
Tried running the PR and while it plays songs fine when the queue runs out the bot crashes immediately with the error "No songs in queue to forward to." Error: No songs in queue to forward to. Running on Linux Mint through Docker, unsure if that means anything for it |
Using the suggested |
Did further testing, seems to happen only when skipping the last song in the queue or skipping to the last song in the queue, have tested 3 videos and gotten the same results from all of them. Old Gods of Asgard's Herald of Darkness audio track - https://www.youtube.com/watch?v=TyC1NzSmFIg All play through fine but upon skipping to the last or the last video itself the bot crashes with the error below. /usr/app/src/services/player.ts:315 Error: No songs in queue to forward to. Node.js v18.20.4 I've attached a screenshot to showcase an example of what to do to recreate the bug |
Thank you for reporting. This was an error from a different pr by me. This also resulted in the bot always skipping an additional song. Should now be fixed. |
Spoke too soon, got these exceptions today:
I've just pulled the updates from 3c161b7 and will test today. |
I think this isn't an issue caused by this PR (see #1000). It's an error with ytsr (deprecated module for doing YT search requests). There is also an open PR for replacing it with Distube's fork #1024. |
Yeah this PR cannot and should not fix everything. The 403 errors are fixed, thats already a good enough reason to merge as-is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the delay, thank you for the patch!
🚀 Released in Release v2.9.0. |
Closes #1037
I don't think ytdl-core will receive any updates anymore and play-dl also has this playback issue. Distube's fork has some extra fixes and also updated decipher code (resolves the playback issue). It works as a drop-in replacement. The only downside is that it needs nodejs >= 18.