mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-22 22:29:44 +00:00
up
This commit is contained in:
1 parent
556550e2a9
commit
5a933a2e15
3 files changed
+11
-3
No files matched your search
@@ -233,7 +233,7 @@ public class AllMusic {
|
||||
String data = new Gson().toJson(obj);
|
||||
AllMusic.side.send(data, name, null);
|
||||
AllMusic.side.send("[Play]" + PlayGo.url, name, true);
|
||||
if (!PlayMusic.nowPlayMusic.getPicUrl().isEmpty()) {
|
||||
if (!PlayMusic.nowPlayMusic.isUrl()) {
|
||||
AllMusic.side.task(() ->
|
||||
AllMusic.side.send("[Img]" + PlayMusic.nowPlayMusic.getPicUrl(), name, true), 15);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ public class SongInfo {
|
||||
private int length;
|
||||
|
||||
private boolean isList;
|
||||
private boolean isUrl;
|
||||
|
||||
public SongInfo(String Name, String Url, int Length) {
|
||||
this.length = Length;
|
||||
@@ -25,6 +26,7 @@ public class SongInfo {
|
||||
this.name = Name;
|
||||
id = alia = call = al = author = picUrl = "";
|
||||
isList = false;
|
||||
isUrl = true;
|
||||
}
|
||||
|
||||
public SongInfo(String Author, String Name, String ID, String Alia, String Call, String Al,
|
||||
@@ -42,6 +44,10 @@ public class SongInfo {
|
||||
this.trialInfo = trialInfo;
|
||||
}
|
||||
|
||||
public boolean isUrl() {
|
||||
return isUrl;
|
||||
}
|
||||
|
||||
public boolean isTrial() {
|
||||
return isTrial;
|
||||
}
|
||||
|
||||
@@ -133,8 +133,10 @@ public class PlayGo {
|
||||
AllMusic.side.bqt(info);
|
||||
startTimer();
|
||||
AllMusic.side.send("[Play]" + url, true);
|
||||
AllMusic.side.task(() ->
|
||||
AllMusic.side.send("[Img]" + PlayMusic.nowPlayMusic.getPicUrl(), true), 10);
|
||||
if(!PlayMusic.nowPlayMusic.isUrl()){
|
||||
AllMusic.side.task(() ->
|
||||
AllMusic.side.send("[Img]" + PlayMusic.nowPlayMusic.getPicUrl(), true), 10);
|
||||
}
|
||||
if (PlayMusic.nowPlayMusic.isTrial()) {
|
||||
AllMusic.side.bqt(AllMusic.getMessage().getMusicPlay().getTrail());
|
||||
PlayMusic.musicLessTime = PlayMusic.nowPlayMusic.getTrialInfo().getEnd();
|
||||
|
||||
Reference in new issue
Block a user