Skip to content

Commit

Permalink
url encode deezer isrc
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Sep 13, 2023
1 parent bb7c9c9 commit fa226eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private AudioSearchResult getAutocomplete(String query, Set<AudioSearchResult.Ty
}

private AudioItem getTrackByISRC(String isrc, boolean preview) throws IOException {
var json = this.getJson(PUBLIC_API_BASE + "/track/isrc:" + isrc);
var json = this.getJson(PUBLIC_API_BASE + "/track/isrc:" + URLEncoder.encode(isrc, StandardCharsets.UTF_8));
if (json == null || json.get("id").isNull()) {
return AudioReference.NO_TRACK;
}
Expand Down

0 comments on commit fa226eb

Please sign in to comment.