From 77f5d60247afdcca2d126adfd611c751fb1c9302 Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Sun, 23 Oct 2022 22:11:54 +0200 Subject: [PATCH] disable all sources by default --- .../topisenpai/lavasrc/plugin/LavaSrcPlugin.java | 10 +++++----- .../topisenpai/lavasrc/plugin/SourcesConfig.java | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/LavaSrcPlugin.java b/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/LavaSrcPlugin.java index 36baf9b2..66700dda 100644 --- a/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/LavaSrcPlugin.java +++ b/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/LavaSrcPlugin.java @@ -24,7 +24,7 @@ public class LavaSrcPlugin implements AudioPlayerManagerConfiguration { private final DeezerConfig deezerConfig; public LavaSrcPlugin(LavaSrcConfig pluginConfig, SourcesConfig sourcesConfig, SpotifyConfig spotifyConfig, AppleMusicConfig appleMusicConfig, DeezerConfig deezerConfig, YandexMusicConfig yandexMusicConfig) { - log.info("Loading LavaSrc-Plugin..."); + log.info("Loading LavaSrc plugin..."); this.pluginConfig = pluginConfig; this.sourcesConfig = sourcesConfig; this.spotifyConfig = spotifyConfig; @@ -36,19 +36,19 @@ public LavaSrcPlugin(LavaSrcConfig pluginConfig, SourcesConfig sourcesConfig, Sp @Override public AudioPlayerManager configure(AudioPlayerManager manager) { if (this.sourcesConfig.isSpotify()) { - log.info("Loading Spotify-SourceManager..."); + log.info("Registering Spotify audio source manager..."); manager.registerSourceManager(new SpotifySourceManager(this.pluginConfig.getProviders(), this.spotifyConfig.getClientId(), this.spotifyConfig.getClientSecret(), this.spotifyConfig.getCountryCode(), manager)); } if (this.sourcesConfig.isAppleMusic()) { - log.info("Loading Apple-Music-SourceManager..."); + log.info("Registering Apple Music audio source manager..."); manager.registerSourceManager(new AppleMusicSourceManager(this.pluginConfig.getProviders(), this.appleMusicConfig.getCountryCode(), manager)); } if (this.sourcesConfig.isDeezer()) { - log.info("Loading Deezer-SourceManager..."); + log.info("Registering Deezer audio source manager..."); manager.registerSourceManager(new DeezerAudioSourceManager(this.deezerConfig.getMasterDecryptionKey())); } if (this.sourcesConfig.isYandexMusic()) { - log.info("Loading Yandex-Music-SourceManager..."); + log.info("Registering Yandex Music audio source manager..."); manager.registerSourceManager(new YandexMusicSourceManager(this.yandexMusicConfig.getAccessToken())); } return manager; diff --git a/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/SourcesConfig.java b/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/SourcesConfig.java index af4c53b1..45ea6bd1 100644 --- a/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/SourcesConfig.java +++ b/plugin/src/main/java/com/github/topisenpai/lavasrc/plugin/SourcesConfig.java @@ -8,10 +8,10 @@ @Component public class SourcesConfig { - private boolean spotify = true; - private boolean appleMusic = true; - private boolean yandexMusic = true; - private boolean deezer = true; + private boolean spotify = false; + private boolean appleMusic = false; + private boolean deezer = false; + private boolean yandexMusic = false; public boolean isSpotify() { return this.spotify;