diff --git a/main/src/main/java/com/github/topisenpai/lavasrc/deezer/DeezerAudioSourceManager.java b/main/src/main/java/com/github/topisenpai/lavasrc/deezer/DeezerAudioSourceManager.java index eb0a6e7c..3d2311f3 100644 --- a/main/src/main/java/com/github/topisenpai/lavasrc/deezer/DeezerAudioSourceManager.java +++ b/main/src/main/java/com/github/topisenpai/lavasrc/deezer/DeezerAudioSourceManager.java @@ -153,7 +153,7 @@ private AudioTrack parseTrack(JsonBrowser json) { private AudioItem getTrackByISRC(String isrc) throws IOException { var json = this.getJson(PUBLIC_API_BASE + "/track/isrc:" + isrc); - if (json == null || json.get("id").isNull() || !json.get("readable").as(Boolean.class)) { + if (json == null || json.get("id").isNull()) { return AudioReference.NO_TRACK; } return this.parseTrack(json); @@ -179,7 +179,7 @@ private AudioItem getAlbum(String id) throws IOException { private AudioItem getTrack(String id) throws IOException { var json = this.getJson(PUBLIC_API_BASE + "/track/" + id); - if (json == null || !json.get("readable").as(Boolean.class)) { + if (json == null) { return AudioReference.NO_TRACK; } return this.parseTrack(json);