Skip to content

Commit

Permalink
add warning about enabled default youtube source
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed May 5, 2024
1 parent 98115f4 commit 288647c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ class AudioPlayerConfiguration {
val mcr: MediaContainerRegistry = MediaContainerRegistry.extended(*mediaContainerProbes.toTypedArray())

if (sources.isYoutube) {
log.warn(
"""
The default Youtube source is now deprecated and won't receive further updates.
You should use the new Youtube source plugin instead.
https://github.com/lavalink-devs/youtube-source#plugin.
To disable this warning, set 'lavalink.server.sources.youtube' to false in your application.yml.
""".trimIndent()
)
val youtubeConfig = serverConfig.youtubeConfig
val youtube: YoutubeAudioSourceManager
if (youtubeConfig != null) {
Expand Down

0 comments on commit 288647c

Please sign in to comment.