Revert change which I accidentally committed while fixing the decryption

function in 7b72fd2a7d
This commit is contained in:
TobiGr 2020-01-25 21:08:17 +01:00
parent f8d117f6cd
commit 033a9fb8e3

View File

@ -720,8 +720,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
final String playerUrl; final String playerUrl;
// Check if the video is age restricted // Check if the video is age restricted
Elements e = doc.select("meta[property=\"og:restrictions:age\"]"); if (!doc.select("meta[property=\"og:restrictions:age\"]").isEmpty()) {
if (!e.isEmpty()) {
final EmbeddedInfo info = getEmbeddedInfo(); final EmbeddedInfo info = getEmbeddedInfo();
final String videoInfoUrl = getVideoInfoUrl(getId(), info.sts); final String videoInfoUrl = getVideoInfoUrl(getId(), info.sts);
final String infoPageResponse = downloader.get(videoInfoUrl, getExtractorLocalization()).responseBody(); final String infoPageResponse = downloader.get(videoInfoUrl, getExtractorLocalization()).responseBody();