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

View file

@ -823,13 +823,6 @@ public class YoutubeStreamExtractor extends StreamExtractor {
// If the video is age restricted getPlayerConfig will fail // If the video is age restricted getPlayerConfig will fail
if(isAgeRestricted) return Collections.emptyList(); 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; final JsonObject captions;
if (!playerResponse.has("captions")) { if (!playerResponse.has("captions")) {
// Captions does not exist // Captions does not exist