fix(deps): update dependency dev.lavalink.youtube:v2 to v1.15.0
This commit is contained in:
1 parent
69e9ae982b
commit
3a678ae859
8 files changed
+41
-8
No files matched your search
@@ -53,6 +53,8 @@ public class NetNeutrality {
|
||||
|
||||
if ("dev".equals(env)) {
|
||||
Configurator.setLevel("net.dv8tion.jda", Level.DEBUG);
|
||||
Configurator.setLevel("dev.lavalink.youtube", Level.DEBUG);
|
||||
Configurator.setLevel("com.sedmelluq.discord", Level.DEBUG);
|
||||
}
|
||||
|
||||
instance = new NetNeutrality();
|
||||
|
||||
@@ -58,6 +58,8 @@ public class TaskManager {
|
||||
}
|
||||
|
||||
public void init() {
|
||||
logger.info("Initializing task manager...");
|
||||
|
||||
loadBuiltInTasks();
|
||||
loadScheduledTasks();
|
||||
taskService.loadTasks();
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager;
|
||||
import com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager;
|
||||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
|
||||
import dev.lavalink.youtube.YoutubeAudioSourceManager;
|
||||
import dev.lavalink.youtube.YoutubeSourceOptions;
|
||||
import me.bobert.netneutrality.core.command.CommandExecutionResult;
|
||||
import me.bobert.netneutrality.core.context.CommandContext;
|
||||
import me.bobert.netneutrality.db.GSettings;
|
||||
@@ -60,7 +61,16 @@ public class MusicManager {
|
||||
}
|
||||
|
||||
public static void initPlayerManager() {
|
||||
playerManager.registerSourceManager(new YoutubeAudioSourceManager());
|
||||
logger.debug("Initializing music player sources..");
|
||||
|
||||
String cipherUrl = Settings.getInstance().get("NETNEUTRALITY_CIPHER_URL");
|
||||
String cipherPassword = Settings.getInstance().get("NETNEUTRALITY_CIPHER_PASSWORD");
|
||||
YoutubeSourceOptions options = new YoutubeSourceOptions()
|
||||
.setAllowSearch(true)
|
||||
.setAllowDirectVideoIds(true)
|
||||
.setAllowDirectPlaylistIds(true)
|
||||
.setRemoteCipher(cipherUrl, cipherPassword, "");
|
||||
playerManager.registerSourceManager(new YoutubeAudioSourceManager(options, YoutubeAudioSourceManager.DEFAULT_CLIENTS));
|
||||
playerManager.registerSourceManager(SoundCloudAudioSourceManager.createDefault());
|
||||
playerManager.registerSourceManager(new UdioAudioSourceManager());
|
||||
playerManager.registerSourceManager(new HttpAudioSourceManager());
|
||||
|
||||
Reference in new issue
Block a user