Skip to content

Commit 033a9fb

Browse files
committed
Revert change which I accidentally committed while fixing the decryption
function in 7b72fd2
1 parent f8d117f commit 033a9fb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,7 @@ public void onFetchPage(@Nonnull Downloader downloader) throws IOException, Extr
720720

721721
final String playerUrl;
722722
// Check if the video is age restricted
723-
Elements e = doc.select("meta[property=\"og:restrictions:age\"]");
724-
if (!e.isEmpty()) {
723+
if (!doc.select("meta[property=\"og:restrictions:age\"]").isEmpty()) {
725724
final EmbeddedInfo info = getEmbeddedInfo();
726725
final String videoInfoUrl = getVideoInfoUrl(getId(), info.sts);
727726
final String infoPageResponse = downloader.get(videoInfoUrl, getExtractorLocalization()).responseBody();

0 commit comments

Comments
 (0)