Skip to content

Commit

Permalink
Merge pull request #7 from ryuuta0217/master
Browse files Browse the repository at this point in the history
ニコニコ動画の再生が実行されない(Unknown format)問題を修正
  • Loading branch information
kosugikun authored Sep 9, 2019
2 parents e26d515 + d35eff2 commit 5ee62e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>com.sedmelluq</groupId>
<artifactId>lavaplayer</artifactId>
<version>1.3.19</version>
<version>LATEST</version>
</dependency>
<dependency>
<groupId>com.jagrosh</groupId>
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ public PlayerManager(Bot bot)

public void init()
{
AudioSourceManagers.registerRemoteSources(this);
AudioSourceManagers.registerLocalSource(this);
source(YoutubeAudioSourceManager.class).setPlaylistPageCount(10);
if(bot.getConfig().isNicoNicoEnabled()) {
registerSourceManager(
new NicoAudioSourceManager(
bot.getConfig().getNicoNicoEmailAddress(),
bot.getConfig().getNicoNicoPassword())
);
}

AudioSourceManagers.registerRemoteSources(this);
AudioSourceManagers.registerLocalSource(this);
source(YoutubeAudioSourceManager.class).setPlaylistPageCount(10);
}

public Bot getBot()
Expand Down

0 comments on commit 5ee62e0

Please sign in to comment.