[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:
parent
2e92d718a2
commit
ef49cd0007
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue