Skip to content

Commit

Permalink
Update DeezerAudioSourceManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Nansess authored Sep 29, 2024
1 parent 09c93e3 commit 9b53410
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ private List<AudioTrack> parseTracks(JsonBrowser json, boolean preview) {
}

private AudioTrack parseTrack(JsonBrowser json, boolean preview) {
boolean readable = json.get("readable").asBoolean(false);
if (!readable) {
throw new FriendlyException("This track is not readable. Available countries: " + json.get("available_countries").text(), FriendlyException.Severity.COMMON, null);
if (!json.get("readable").asBoolean(false)) {
throw new FriendlyException("This track is not readable. Available countries: " + json.get("available_countries").text(),
FriendlyException.Severity.COMMON, null);
}
var id = json.get("id").text();
return new DeezerAudioTrack(
Expand Down

0 comments on commit 9b53410

Please sign in to comment.