Music doesn't work anymore
larssieboy18 opened this issue ยท 5 comments
Describe the bug
Most of the music doesn't work anymore. In the log you can see that most of the songs are not working, because there is some error related to Youtube.
Potential Causes
No clue. Did not change anything, the music just stopped working. Based on a quick look, it looks like an error related to YouTube.
Environment Info
Plugin version: 1.3.3.6
Bukkit/Spigot server version: Purpur 710, v. 1.16.1
Configuration file
Sending us your plugin config.yml
file may help in diagnosing the issue. Paste the contents of the plugin's config file here: (feel free to omit your Discord token for security reasons)
# How long the hunters should get blindness and slowness when the match starts.
headStartDuration: 30
compassEnabledInNether: true
setRunnersToSpecOnDeath: true
sendUsageData: true
huntersColor: '&c'
runnersColor: '&a'
spectatorsColor: '&b'
enableDiscord: true
discordToken: xxx
ip: play.creeper.town
processDiscordCommands: true
discordServerId: 791691919842738187
musicChannelId: 824002563249930240
hunterRoleId: 823600420555325500
runnerRoleId: 823600482563260476
spectatorRoleId: 823600465609883688
uuid: 1a5d54b3-2864-43eb-8a9e-544402479a95
Server Logs
Please check your Server Console for any warnings or errors created by the plugin. If any are any, please copy and paste them here:
Yep, the YouTube videos probably got taken down. I'll take a look and change the broken links.
Update: I tested every music track and I could not reproduce the issue. I'll look at the server logs more closely now to try to find what's wrong!
I think I've found what's going on! It looks like very recently โ April 1st, Youtube started displaying a Cookie Consent screen to users, which broke the music player library that the plugin uses. I've opened an issue for the library, but until that gets fixed I don't know there's much I can do :/
One more piece of info that may potentially be helpful: what country/state are your servers in? It could be a regional thing due to possibly new laws around cookies. I'm in California, and I don't seem to be getting this error.
The servers are located in Finland or Germany (actually not quite sure which one), but both are inside the EU, so could be that the cookie pop up is currently mainly focused on the EU.
I got a response from the library developers, they said that the latest version of the library should have fixed this issue. Please try release 1.3.3.7 where I've updated the dependencies and see if it fixes the issue!