Open iTsMaaT opened 3 months ago
After some testing, I've discovered that it is a discord-player bug.
import { YoutubeiExtractor } from "discord-player-youtubei"
import { QueryResolver } from "discord-player"
const resolver = QueryResolver.resolve("https://www.youtube.com/watch?v=KltK-3QHIjI&list=OLAK5uy_lc3hcbsPXaYpKLrdowf5RS7hGgyegqFx4")
console.log(resolver)
The following code returns a the query type of youtubePlaylist which is total not the case. I'll quick patch this for now using the extractor itself but I recommend you also open an issue on the discord-player github.
1.1.11!
After some testing, I've discovered that it is a discord-player bug.
import { YoutubeiExtractor } from "discord-player-youtubei" import { QueryResolver } from "discord-player" const resolver = QueryResolver.resolve("https://www.youtube.com/watch?v=KltK-3QHIjI&list=OLAK5uy_lc3hcbsPXaYpKLrdowf5RS7hGgyegqFx4") console.log(resolver)
The following code returns a the query type of youtubePlaylist which is total not the case. I'll quick patch this for now using the extractor itself but I recommend you also open an issue on the discord-player github.
this url resembles a video referenced to a playlist (basically a video that is a part of the playlist where next song is also the part of that playlist)
it is up to the extractor to resolve playlist or video in this situation.
Next version will fetch both!
Youtube has been killing me with these security measures. I am going to finally make this feature this week.
Trying this link for example:
https://www.youtube.com/watch?v=KltK-3QHIjI&list=OLAK5uy_lc3hcbsPXaYpKLrdowf5RS7hGgyegqFx4
Throws this error
Here are the debug logs:
The issue seems to be related to the fact that it is not a playlist link, but the link of a song inside of a playlist, which causes issues.