Skip to content

Commit

Permalink
up 添加新版网易云音乐客户端链接解析
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Aug 17, 2024
1 parent 182815c commit ccd781a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/AllMusic.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class AllMusic {
/**
* 插件版本号
*/
public static final String version = "3.2.2";
public static final String version = "3.2.3";
/**
* 配置文件版本号
*/
Expand Down
5 changes: 5 additions & 0 deletions core/command/CommandEX.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ public static void addMusic(Object sender, String name, String[] args) {
musicID = Function.getString(args[0], "id=", "&user");
else
musicID = Function.getString(args[0], "id=", null);
} else if (args[0].contains("id=") && !args[0].contains("&uct2")) {
if (args[0].contains("&uct2"))
musicID = Function.getString(args[0], "id=", "&uct2");
else
musicID = Function.getString(args[0], "id=", null);
} else if (args[0].contains("song/")) {
if (args[0].contains("/?userid"))
musicID = Function.getString(args[0], "song/", "/?userid");
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.2.3

0 comments on commit ccd781a

Please sign in to comment.