Skip to content

Commit bebdc55

Browse files
authored
Merge pull request #829 from TiA4f8R/yt-subtitles-age-restricted-videos-fix
[YouTube] Extract subtitles for age-restricted videos
2 parents 2e92d71 + ef49cd0 commit bebdc55

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,6 @@ public List<SubtitlesStream> getSubtitlesDefault() throws ParsingException {
654654
@Nonnull
655655
public List<SubtitlesStream> getSubtitles(final MediaFormat format) throws ParsingException {
656656
assertPageFetched();
657-
// If the video is age-restricted getSubtitles will fail
658-
if (getAgeLimit() != NO_AGE_LIMIT) {
659-
return Collections.emptyList();
660-
}
661657
if (subtitles != null) {
662658
// Already calculated
663659
return subtitles;

0 commit comments

Comments
 (0)