diff --git a/src/main/java/de/sfuhrm/radiorecorder/Radio.java b/src/main/java/de/sfuhrm/radiorecorder/Radio.java index c3f7979..e0869ee 100644 --- a/src/main/java/de/sfuhrm/radiorecorder/Radio.java +++ b/src/main/java/de/sfuhrm/radiorecorder/Radio.java @@ -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; }