Skip to content

Commit

Permalink
[YouTube] Extract subtitles for age-restricted videos
Browse files Browse the repository at this point in the history
Subtitles of age-restricted videos can be extracted since the InnerTube API migration, so there is no reason to not extract them anymore.
  • Loading branch information
AudricV committed Apr 11, 2022
1 parent 2e92d71 commit ef49cd0
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 ef49cd0

Please sign in to comment.