Skip to content

Commit

Permalink
Increase playlist and album limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdbeerbaerLP committed Jul 10, 2024
1 parent f4d24bc commit 7b65938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ public void init()
registerSourceManager(new HttpAudioSourceManager(MediaContainerRegistry.DEFAULT_REGISTRY));

if (!bot.getConfig().getSpotifyClientID().isEmpty() && !bot.getConfig().getSpotifyClientSecret().isEmpty()) {
registerSourceManager(new SpotifySourceManager(null,bot.getConfig().getSpotifyClientID(),bot.getConfig().getSpotifyClientSecret(), "DE", this));
final SpotifySourceManager spotify = new SpotifySourceManager(null, bot.getConfig().getSpotifyClientID(), bot.getConfig().getSpotifyClientSecret(), "DE", this);
spotify.setPlaylistPageLimit(18);
spotify.setAlbumPageLimit(18);
registerSourceManager(spotify);

}
AudioSourceManagers.registerLocalSource(this);

Expand Down

0 comments on commit 7b65938

Please sign in to comment.