ERR_NO_RESULT: Could not extract stream for this track
nobuuuuuu opened this issue · comments
Describe the bug
Hello, I'm having the same problem as in this issue : #1800 with Spotify playlists.
I was originally using this code to load extractors from the main package:
const { Player } = require("discord-player");
// [...]
const player = new Player(client, {});
// [...]
await player.extractors.loadDefault((ext) => ext === 'YouTubeExtractor' || ext === 'SpotifyExtractor' || ext === 'AttachmentExtractor');
But since you said that there might be a difference between the version of the extractors and youtube-ext
I installed @discord-player/extractor
and loaded the extractors as follows :
const { Player } = require("discord-player");
const { AppleMusicExtractor,VimeoExtractor,SoundCloudExtractor,ReverbnationExtractor, YoutubeExtractor, SpotifyExtractor, AttachmentExtractor } = require("@discord-player/extractor")
// [...]
const player = new Player(client, {
blockStreamFrom: [
AppleMusicExtractor.identifier,
VimeoExtractor.identifier,
SoundCloudExtractor.identifier,
ReverbnationExtractor.identifier
],
blockExtractors: [
AppleMusicExtractor.identifier,
VimeoExtractor.identifier,
SoundCloudExtractor.identifier,
ReverbnationExtractor.identifier
]});
// [...]
await player.extractors.register(YoutubeExtractor);
await player.extractors.register(SpotifyExtractor);
await player.extractors.register(AttachmentExtractor);
But I'm still having the same error...
It works if I play the music directly via its URL, the problem only occurs when I skip the music that precedes it.
I may have misunderstood how to fix this error, but I have the impression that the bug is still there.
To Reproduce
Steps to reproduce the behavior:
- Play Spotify playlist : https://open.spotify.com/playlist/37i9dQZF1DX0CgRlkzaOFL?si=74077b072d2b4d75
- Skip the first 2 musics
- Error (SS)
Expected behavior
The bot should play the third music
Please complete the following information:
- Node Version: 18.17.1
- Discord Player Version: 6.6.4
- Discord.js Version: 14.13.0
- @discord-player/extractor Version : 4.4.4
- youtube-ext Version : 1.1.16
This seems to work just fine when that track is manually loaded but fails with playlist, I will get back to this soon. You can avoid this error by setting skipOnNoStream: true
in nodeOptions
while initializing the queue.