Address review.

pull/973/head
Kavin 2022-11-14 00:05:31 +00:00
rodzic b16e6082e1
commit 86f06b333a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 49451E4482CC5BCD
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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