From 90d0fb3e8fc4f84bf0dc6012841004a21a0d4b07 Mon Sep 17 00:00:00 2001 From: Maoyue <95519633+MagicTeaMC@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:06:24 +0800 Subject: [PATCH] fix age-restricted tracks --- src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java b/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java index f18a838..68a0ba6 100644 --- a/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java +++ b/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java @@ -31,6 +31,7 @@ import dev.lavalink.youtube.YoutubeAudioSourceManager; import dev.lavalink.youtube.clients.AndroidTestsuiteWithThumbnail; import dev.lavalink.youtube.clients.MusicWithThumbnail; +import dev.lavalink.youtube.clients.TvHtml5EmbeddedWithThumbnail; import dev.lavalink.youtube.clients.WebWithThumbnail; import dev.lavalink.youtube.clients.skeleton.Client; import net.dv8tion.jda.api.entities.Guild; @@ -48,7 +49,7 @@ public PlayerManager(Bot bot) { public void init() { TransformativeAudioSourceManager.createTransforms(bot.getConfig().getTransforms()).forEach(this::registerSourceManager); - registerSourceManager(new YoutubeAudioSourceManager(/*allowSearch:*/ true, new Client[] { new MusicWithThumbnail(), new WebWithThumbnail(), new AndroidTestsuiteWithThumbnail() })); + registerSourceManager(new YoutubeAudioSourceManager(/*allowSearch:*/ true, new Client[] { new MusicWithThumbnail(), new WebWithThumbnail(), new AndroidTestsuiteWithThumbnail(), new TvHtml5EmbeddedWithThumbnail() })); registerSourceManager(SoundCloudAudioSourceManager.createDefault()); registerSourceManager(new BandcampAudioSourceManager());