-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
[6.3.0] Empty YouTube tracks #1731
Comments
Did you load the extractor too? await player.extractors.register(YoutubeExtractor, {}); I'm also not sure if you need the |
The searchEngine: `ext:${YouTubeExtractor.identifier}` Also make sure youtube extractor is loaded and activated before executing search |
@Crocross yes I've tried both loadDefault() and registering only YouTubeExtractor. Both removed the warning about no extractors being registered, but both gave empty tracks too. @skdhg Thanks! Prepending Thanks again! |
thanks for pointing this out @kiritokatklian There's a mistake in the guide. It should be + import { SoundCloudExtractor } from '@discord-player/extractor';
+
+ const result = await player.search(query, {
+ // always use soundcloud extractor
- searchEngine: SoundCloudExtractor.identifier
+ searchEngine: `ext:${SoundCloudExtractor.identifier}`
+}); |
Describe the bug
Searching for a song using the YouTube extractor returns an empty array of tracks. This still works fine on 6.2.1, but stopped working in 6.3.0
To Reproduce
Steps to reproduce the behavior:
Update to 6.3.0 then use the following code:
Expected behavior
Receive an array of tracks.
Screenshots
n/a
Please complete the following information:
Additional context
Tried replacing
play-dl
withytdl-core
, specifically from this issue, but that didn't fix it.The only way I got it working again is by downgrading back to 6.2.1, switching back to
play-dl
, and usingQueryType.YOUTUBE
instead ofYouTubeExtractor.identifier
.The text was updated successfully, but these errors were encountered: