Repository navigation
fix(bot): restore youtube extractor and prioritize spotify search - #492
Merged
Merged
Conversation
- Added youtube-dl-exec as explicit dependency — discord-player-youtubei imports it but doesn't declare it, causing YoutubeiExtractor to fail silently in Docker production builds - Log actual error in playerFactory.ts catch block for future debugging - Prioritize Spotify search over YouTube for text queries (/play song name) with automatic fallback to YouTube if Spotify returns no results - URL queries (youtube.com, spotify.com, etc.) continue using auto-detect Fixes LUCKY-2C
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Size Change: 0 B Total Size: 319 kB ℹ️ View Unchanged
|
|
4 tasks
Merged
3 of 7 tasks
LucasSantana-Dev
added a commit
that referenced
this pull request
May 13, 2026
- Added youtube-dl-exec as explicit dependency — discord-player-youtubei imports it but doesn't declare it, causing YoutubeiExtractor to fail silently in Docker production builds - Log actual error in playerFactory.ts catch block for future debugging - Prioritize Spotify search over YouTube for text queries (/play song name) with automatic fallback to YouTube if Spotify returns no results - URL queries (youtube.com, spotify.com, etc.) continue using auto-detect Fixes LUCKY-2C
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
discord-player-youtubeiimportsyoutube-dl-execbut doesn't declare it in dependencies. After the production deps update (chore(deps): bump the production-dependencies group with 17 updates #482), this package was missing from the Docker image, causing YoutubeiExtractor to fail on startup withCannot find package 'youtube-dl-exec'youtube-dl-exec@^3.1.3as explicit bot dependency/play song name) now useSPOTIFY_SEARCHfirst with automatic fallback toAUTO(YouTube). URL queries continue using auto-detect.Test plan
npm run test:bot— 1418 tests pass (including 16 play command tests)Registered YoutubeiExtractorappears in bot startup logs/play despacitoshould find Spotify track (not random YouTube video)/play https://youtube.com/watch?v=...should still play YouTube directlyFixes LUCKY-2C
🤖 Generated with Claude Code