Skip to content

Commit

Permalink
Merge pull request #829 from TiA4f8R/yt-subtitles-age-restricted-vide…
Browse files Browse the repository at this point in the history
…os-fix

[YouTube] Extract subtitles for age-restricted videos
  • Loading branch information
Redirion authored Apr 14, 2022
2 parents 2e92d71 + ef49cd0 commit bebdc55
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,6 @@ public List<SubtitlesStream> getSubtitlesDefault() throws ParsingException {
@Nonnull
public List<SubtitlesStream> getSubtitles(final MediaFormat format) throws ParsingException {
assertPageFetched();
// If the video is age-restricted getSubtitles will fail
if (getAgeLimit() != NO_AGE_LIMIT) {
return Collections.emptyList();
}
if (subtitles != null) {
// Already calculated
return subtitles;
Expand Down

0 comments on commit bebdc55

Please # to comment.