@Override public AudioSourceManager newSourceManagerInstance() throws Exception { YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager(); manager.setPlaylistPageCount(100); return manager; } }
@Override public AudioSourceManager newSourceManagerInstance() throws Exception { YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager(); manager.setPlaylistPageCount(100); return manager; } }
@Override public AudioSourceManager newSourceManagerInstance() throws Exception { YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager(); manager.setPlaylistPageCount(100); return manager; } }
@Override public AudioSourceManager newSourceManagerInstance() throws Exception { YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager(); manager.setPlaylistPageCount(100); return manager; } }
/** * Registers all built-in remote audio sources to the specified player manager. Local file audio source must be * registered separately. * * @param playerManager Player manager to register the source managers to * @param containerRegistry Media container registry to be used by any probing sources. */ public static void registerRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry) { playerManager.registerSourceManager(new YoutubeAudioSourceManager(true)); playerManager.registerSourceManager(new SoundCloudAudioSourceManager()); playerManager.registerSourceManager(new BandcampAudioSourceManager()); playerManager.registerSourceManager(new VimeoAudioSourceManager()); playerManager.registerSourceManager(new TwitchStreamAudioSourceManager()); playerManager.registerSourceManager(new BeamAudioSourceManager()); playerManager.registerSourceManager(new HttpAudioSourceManager()); }
public AudioPlayerManager registerSourceManagers(AudioPlayerManager manager) { manager.registerSourceManager(new PlaylistImportSourceManager()); YoutubeAudioSourceManager youtubeAudioSourceManager = new YoutubeAudioSourceManager(); youtubeAudioSourceManager.configureRequests(config -> RequestConfig.copy(config) .setCookieSpec(CookieSpecs.IGNORE_COOKIES) .build()); manager.registerSourceManager(youtubeAudioSourceManager); manager.registerSourceManager(new SoundCloudAudioSourceManager()); manager.registerSourceManager(new TwitchStreamAudioSourceManager()); manager.registerSourceManager(new BandcampAudioSourceManager()); manager.registerSourceManager(new VimeoAudioSourceManager()); manager.registerSourceManager(new BeamAudioSourceManager()); manager.registerSourceManager(new LocalAudioSourceManager()); manager.registerSourceManager(new HttpAudioSourceManager()); return manager; }
YoutubeAudioSourceManager youtubeAudioSourceManager = new YoutubeAudioSourceManager(); if (bot.getConfigs().config.patreon) { youtubeAudioSourceManager.setPlaylistPageCount(25);