From eac288148227f9f96b629ddae9f00e20a6c0691e Mon Sep 17 00:00:00 2001 From: khj xiaogu <54445543+khjxiaogu@users.noreply.github.com> Date: Tue, 16 Mar 2021 00:38:47 +0800 Subject: [PATCH] removed unused output --- .../khjxiaogu/MiraiSongPlugin/musicsource/KugouMusicSource.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/khjxiaogu/MiraiSongPlugin/musicsource/KugouMusicSource.java b/src/main/java/com/khjxiaogu/MiraiSongPlugin/musicsource/KugouMusicSource.java index 238034c..8ac6605 100644 --- a/src/main/java/com/khjxiaogu/MiraiSongPlugin/musicsource/KugouMusicSource.java +++ b/src/main/java/com/khjxiaogu/MiraiSongPlugin/musicsource/KugouMusicSource.java @@ -30,7 +30,6 @@ public MusicInfo get(String keyword) throws Exception { .get("hash").getAsString(); String album_id=je.get("data").getAsJsonObject().get("info").getAsJsonArray().get(0).getAsJsonObject() .get("album_id").getAsString(); - System.out.println(je); HttpURLConnection ihuc = (HttpURLConnection) new URL( "https://wwwapi.kugou.com/yy/index.php?r=play/getdata&hash=" + song+"&album_id="+album_id+"&_="+Utils.getTime()).openConnection(); ihuc.setRequestMethod("GET"); @@ -39,7 +38,6 @@ public MusicInfo get(String keyword) throws Exception { ihuc.connect(); JsonObject info = JsonParser.parseString(new String(Utils.readAll(ihuc.getInputStream()), "UTF-8")) .getAsJsonObject().get("data").getAsJsonObject(); - System.out.println(info); return new MusicInfo(info.get("audio_name").getAsString(), info.get("author_name").getAsString(), info.get("img").getAsString(), info.get("play_url").getAsString(), "https://www.kugou.com/song/#hash=" + song + "&album_id=" + info.get("album_id").getAsString(), "酷狗");