Skip to content

Commit

Permalink
removed unused output
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Mar 15, 2021
1 parent c743ae3 commit eac2881
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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(), "酷狗");
Expand Down

0 comments on commit eac2881

Please sign in to comment.