Remove section of dead code

This commit is contained in:
Mauricio Colli 2019-10-29 02:00:27 -03:00
parent ddd563fe78
commit 91c360df5e
No known key found for this signature in database
GPG Key ID: F200BFD6F29DDD85
1 changed files with 0 additions and 7 deletions

View File

@ -823,13 +823,6 @@ public class YoutubeStreamExtractor extends StreamExtractor {
// If the video is age restricted getPlayerConfig will fail
if(isAgeRestricted) return Collections.emptyList();
final JsonObject playerConfig;
try {
playerConfig = getPlayerConfig(getPageHtml(NewPipe.getDownloader()));
} catch (IOException | ExtractionException e) {
throw new SubtitlesException("Unable to download player configs", e);
}
final JsonObject captions;
if (!playerResponse.has("captions")) {
// Captions does not exist