Skip to content

Commit 4158fc4

Browse files
committed
[Bandcamp] Fix regression of Opus radio streams extraction
When moving opus-lo into a constant, opus-lo was renamed to opus_lo and was only used if no MP3 stream was available (which was not the case before the changes in BandcampRadioStreamExtractor related to the addition of the support of all delivery methods), so these changes removed the ability to get Opus streams of Bandcamp radios. This commit reverts this unwanted change.
1 parent 54d323c commit 4158fc4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampRadioStreamExtractor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
public class BandcampRadioStreamExtractor extends BandcampStreamExtractor {
3535

36-
private static final String OPUS_LO = "opus_lo";
36+
private static final String OPUS_LO = "opus-lo";
3737
private static final String MP3_128 = "mp3-128";
3838
private JsonObject showInfo;
3939

@@ -126,7 +126,9 @@ public List<AudioStream> getAudioStreams() {
126126
.setMediaFormat(MediaFormat.MP3)
127127
.setAverageBitrate(128)
128128
.build());
129-
} else if (streams.has(OPUS_LO)) {
129+
}
130+
131+
if (streams.has(OPUS_LO)) {
130132
audioStreams.add(new AudioStream.Builder()
131133
.setId(OPUS_LO)
132134
.setContent(streams.getString(OPUS_LO), true)

0 commit comments

Comments
 (0)