Update PaidContent exception

This commit is contained in:
TiA4f8R 2021-02-24 13:01:27 +01:00
parent da3cfa967d
commit 890cbba625
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD

View File

@ -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")) {