Skip to content

fix: fixes @distube/ytdl-core is out of date and music not playing issue by switching to use yt-dlp to get streaming URL#1284

Open
tabloomoo wants to merge 15 commits into
museofficial:masterfrom
tabloomoo:master
Open

fix: fixes @distube/ytdl-core is out of date and music not playing issue by switching to use yt-dlp to get streaming URL#1284
tabloomoo wants to merge 15 commits into
museofficial:masterfrom
tabloomoo:master

Conversation

@tabloomoo

@tabloomoo tabloomoo commented Sep 20, 2025

Copy link
Copy Markdown

Closes #1283

  • Switched to yt-dlp to get the streaming URL, removing dependency on @distube/ytdl-core
  • Added docker-compose.example.yml and updated documentation for running with docker-compose locally
  • Deafens by default when joining voice channel

Mostly vibe-coded. I've tested the build and I'm able to run the bot and hear music. Feel free to make changes/abandon this PR as you see fit

  • I updated the changelog

SuperKali and others added 11 commits September 20, 2025 02:16
In the latest version, the issue has been resolved where starting an instance of ffmpeg caused the server to return a 403 Forbidden error (access denied), this preventing the playback of any music tracks.
* Update package.json > @distube/ytdl-core to ^4.16.10
@codetheweb

codetheweb commented Sep 20, 2025

Copy link
Copy Markdown
Collaborator

📦 🤖 A new release has been made for this pull request.

To play around with this PR, pull ghcr.io/museofficial/muse:pr-1284.

Images are available for x86_64 and ARM64.

Latest commit: 932f7ac

@DovahBrownies

Copy link
Copy Markdown

Works great!
I've sent this to https://hub.docker.com/r/dovah/muse for personal usage.

@hideki2k02

Copy link
Copy Markdown

Working as of 31 of October, time to play spooky songs 👻

@Drahgoone Drahgoone left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working as of 13Dec25.

@Cosmo121

Copy link
Copy Markdown

Working for me as well

@quinnhuettner

Copy link
Copy Markdown

This looks to now be broken in my experience

@DovahBrownies

DovahBrownies commented Mar 8, 2026

Copy link
Copy Markdown

This looks to now be broken in my experience

This docker image has been edited with the latest updates and is functional:
https://hub.docker.com/r/dovah/muse

…n support

Discord now requires DAVE (Discord's A/V end-to-end encryption protocol)
on voice connections. @discordjs/voice 0.18.0 did not implement DAVE,
causing voice connections to cycle signalling->connecting indefinitely and
audio to autopause immediately after starting.

- Upgrade @discordjs/voice 0.18.0 -> 0.19.1
- Update discord-api-types 0.32.1 -> 0.38.41 (required peer dep)
- Update @types/ws to ^8.18.1
- Remove keepAlive Reflect.get workaround (broken in 0.18.0+)
- Document that Spotify integration requires Spotify Premium
@DovahBrownies

Copy link
Copy Markdown

Hi @tabloomoo!

There's an open issue about the recent DAVE requirement, along with some fixes and working docker images.

#1294

@tabloomoo

Copy link
Copy Markdown
Author

@DovahBrownies Oh I just saw it. The solution is to just update the dependencies which I did, so we're aligned. The extra Dockerfile stuff is just to make rebuilding faster if dependencies didn't change.

@Cosmo121

Copy link
Copy Markdown

Is anyone having issues playing longer content, like +45 mins? I see the behavior of one second of audio and then nothing. Bot leaves channel. Nothing in logs.

@tabloomoo

Copy link
Copy Markdown
Author

Is anyone having issues playing longer content, like +45 mins? I see the behavior of one second of audio and then nothing. Bot leaves channel. Nothing in logs.

Do you have repro steps? Like, what URL were you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Music Player not working