From 91c360df5ee40c16b14832131612fcf306262567 Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Tue, 29 Oct 2019 02:00:27 -0300 Subject: [PATCH] Remove section of dead code --- .../youtube/extractors/YoutubeStreamExtractor.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index a8a30013..86ccd353 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -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