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