Skip to content

Commit 86f06b3

Browse files
committed
Address review.
1 parent b16e608 commit 86f06b3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/stream/AudioStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ public String getCodec() {
415415
*
416416
* @return the id of the audio track
417417
*/
418+
@Nullable
418419
public String getAudioTrackId() {
419420
return audioTrackId;
420421
}
@@ -424,6 +425,7 @@ public String getAudioTrackId() {
424425
*
425426
* @return the name of the audio track
426427
*/
428+
@Nullable
427429
public String getAudioTrackName() {
428430
return audioTrackName;
429431
}

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorDefaultTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,12 @@ void testCheckAudioStreams() throws Exception {
494494
.stream()
495495
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("English"))
496496
);
497+
498+
assertTrue(
499+
extractor.getAudioStreams()
500+
.stream()
501+
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("Hindi"))
502+
);
497503
}
498504

499505
}

0 commit comments

Comments
 (0)