[YouTube] Extract subtitles for age-restricted videos

Subtitles of age-restricted videos can be extracted since the InnerTube API migration, so there is no reason to not extract them anymore.
This commit is contained in:
TiA4f8R 2022-04-11 22:01:31 +02:00
parent 2e92d718a2
commit ef49cd0007
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 0 additions and 4 deletions

View File

@ -654,10 +654,6 @@ public class YoutubeStreamExtractor extends StreamExtractor {
@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;