Skip to content

Commit

Permalink
バージョン番号の変更
Browse files Browse the repository at this point in the history
ログレベルの変更
再生待ち一覧表示時にローカルファイルがあった場合に発生していた不具合の修正
  • Loading branch information
kosugikun committed Jul 30, 2022
1 parent ce12aab commit 1b2737b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.jagrosh</groupId>
<artifactId>JMusicBot</artifactId>
<!-- バージョン装飾子参考の参考に: https://kengotoda.gitbooks.io/what-is-maven/deploy/snapshot-and-stable.html -->
<version>0.6.9</version>
<version>0.7.0</version>
<packaging>jar</packaging>

<repositories>
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/jagrosh/jmusicbot/audio/QueuedTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.jagrosh.jmusicbot.queue.Queueable;
import com.jagrosh.jmusicbot.utils.FormatUtil;
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
import dev.cosgy.agent.GensokyoInfoAgent;
import dev.cosgy.agent.objects.ResultSet;
import net.dv8tion.jda.api.entities.User;
Expand Down Expand Up @@ -64,6 +65,10 @@ public String toString() {
data.getMisc().getCirclelink();
return "`[" + FormatUtil.formatTime(data.getSongtimes().getDuration()) + "]` [**" + title + "**](" + titleUrl + ") - <@" + track.getUserData(RequestMetadata.class).getOwner() + ">";
}
return "`[" + FormatUtil.formatTime(track.getDuration()) + "]` [**" + track.getInfo().title + "**](" + track.getInfo().uri + ") - <@" + track.getUserData(RequestMetadata.class).getOwner() + ">";

String entry = "`[" + FormatUtil.formatTime(track.getDuration()) + "]` ";
AudioTrackInfo trackInfo = track.getInfo();
entry = entry + (trackInfo.uri.startsWith("http") ? "[**" + trackInfo.title + "**]("+trackInfo.uri+")" : "**" + trackInfo.title + "**");
return entry + " - <@" + track.getUserData(RequestMetadata.class).getOwner() + ">";
}
}
8 changes: 4 additions & 4 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
</encoder>
</appender>

<!--<root level="INFO">
<root level="INFO">
<appender-ref ref="Simple"/>
<appender-ref ref="File"/>
</root>-->
</root>
<!--<root level="DEBUG">
<appender-ref ref="Simple"/>
<appender-ref ref="File"/>
</root>-->

<root level="TRACE">
<!--<root level="TRACE">
<appender-ref ref="Simple"/>
<appender-ref ref="File"/>
</root>
</root>-->

</configuration>

0 comments on commit 1b2737b

Please sign in to comment.