mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 14:20:33 +05:30
Update PaidContent exception
This commit is contained in:
parent
da3cfa967d
commit
890cbba625
@ -759,7 +759,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
if (reason.equals("This video requires payment to watch.")) {
|
if (reason.equals("This video requires payment to watch.")) {
|
||||||
throw new PaidContentException("This video is a paid video");
|
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");
|
throw new PaidContentException("This video is only available for members of the channel of this video");
|
||||||
}
|
}
|
||||||
if (reason.equals("Video unavailable")) {
|
if (reason.equals("Video unavailable")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user