Address review.

This commit is contained in:
Kavin 2022-11-14 00:05:31 +00:00
parent b16e6082e1
commit 86f06b333a
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -494,6 +494,12 @@ public class YoutubeStreamExtractorDefaultTest {
.stream()
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("English"))
);
assertTrue(
extractor.getAudioStreams()
.stream()
.anyMatch(audioStream -> audioStream.getAudioTrackName().equals("Hindi"))
);
}
}