Address review.
This commit is contained in:
parent
b16e6082e1
commit
86f06b333a
|
@ -415,6 +415,7 @@ public final class AudioStream extends Stream {
|
|||
*
|
||||
* @return the id of the audio track
|
||||
*/
|
||||
@Nullable
|
||||
public String getAudioTrackId() {
|
||||
return audioTrackId;
|
||||
}
|
||||
|
@ -424,6 +425,7 @@ public final class AudioStream extends Stream {
|
|||
*
|
||||
* @return the name of the audio track
|
||||
*/
|
||||
@Nullable
|
||||
public String getAudioTrackName() {
|
||||
return audioTrackName;
|
||||
}
|
||||
|
|
|
@ -494,6 +494,12 @@ public class YoutubeStreamExtractorDefaultTest {
|
|||
.stream()
|
||||
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("English"))
|
||||
);
|
||||
|
||||
assertTrue(
|
||||
extractor.getAudioStreams()
|
||||
.stream()
|
||||
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("Hindi"))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue