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
1 changed files with 1 additions and 2 deletions

View File

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