Skip to content

Commit

Permalink
Fix for bitrate mapping see #51
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuhrm committed Jan 7, 2024
1 parent 6fc6ffa commit 3617ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/de/sfuhrm/radiorecorder/Radio.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ static Radio fromStation(Station s) {
r.setFavIconUrl(URI.create(s.getFavicon()));
}
r.setCodec(s.getCodec());
r.setBitrate(r.getBitrate());
if (s.getBitrate() != null) {
r.setBitrate(s.getBitrate());
}
r.setTags(new ArrayList<>(r.getTags()));
return r;
}
Expand Down

0 comments on commit 3617ed6

Please sign in to comment.