From 890cbba6255a8d7af5554f8e01909210f9c7a72d Mon Sep 17 00:00:00 2001 From: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Date: Wed, 24 Feb 2021 13:01:27 +0100 Subject: [PATCH] Update PaidContent exception --- .../services/youtube/extractors/YoutubeStreamExtractor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 47739985e..27c428ee6 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 @@ -759,7 +759,8 @@ public class YoutubeStreamExtractor extends StreamExtractor { if (reason.equals("This video requires payment to watch.")) { throw new PaidContentException("This video is a paid video"); } - if (reason.equals("Join this channel to get access to members-only content like this video, and other exclusive perks.")) { + if (reason.equals("Join this channel to get access to members-only content like this video, and other exclusive perks.") || + reason.equals("Join this channel to get access to members-only content like this video and other exclusive perks.")) { throw new PaidContentException("This video is only available for members of the channel of this video"); } if (reason.equals("Video unavailable")) {