mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
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
|
* @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"))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user