Closed BhaveshBasrani closed 1 month ago
Nodejs v20
Was working fine until 2 seconds ago
Just restart your bot. It should fix it.
Having the same issue and restarted the bot multiple times. Also tried down- and upgrading the package, same issue in all versions.
Was working completely fine yesterday, today it's not working anymore and just giving the n-token error.
AFAIK I can't do anything until youtubei.js fixes this as it's an internal error.
View: LuanRT/youtube.js#698
@Zythoxic @BhaveshBasrani try using the ANDROID client in the useClient option
player.extractors.register(YoutubeiExtractor, {
...otherOptions,
useClient: "ANDROID"
})
Ignore the error after doing this and see if streaming works as intended
try using the ANDROID client in the useClient option
This didn't work for me sadly
@L-uu This is actually my bad. It seems I'm lost in my own code also. The correct syntax is
player.extractors.register(YoutubeiExtractor, {
...otherOptions,
streamOptions: {
useClient: "ANDROID"
}
})
Tbf I should've probably figured that out myself too lmao, but while still displaying the same error it does play music.
Can confirm using the Android client it does play the music again, despite the error.
Damm its actually a big issue y does it occur tho? shld i switch to spotify?
@BhaveshBasrani You cannot just switch to spotify, as it uses youtube to get the sound, or soundcloud if youtube is disabled
Lavalink then ig
adding the android client will still log this error, but the bot will work as intented so its not really an issue
Lavalink then ig
switching to lavalink is not a fix as they also need to scrape youtube for streaming.
ignore this. it should play music
I released 1.2.0. This might fix it. Install it via npm install discord-player-youtubei@latest
Edit: Here are the change logs
This issue is identified to be fixed in the latest version of discord-player-youtubei
I've updated the youtubei.js package, after that it was fixed.
This is happening again as YouTube changed their validation.
Identified the issue. Nothing I can do until youtubei.js releases 10.3.0
See LuanRT/YouTube.js#713
npm i discord-player-youtubei@latest