I tried to download a YouTube video but I received an error stating that I had to indicate a session to verify that it is not a robot seems to be a YouTube security measure or maybe a mistake on my part I don't know
CODE:
public VideoInfo getVideoInfo(String videoId) throws YoutubeException {
RequestVideoInfo videoRequest = new RequestVideoInfo(videoId)
.callback(new YoutubeCallback() {
@OverRide
public void onFinished(VideoInfo videoInfo) {
System.out.println("Finished parsing");
}
@Override
public void onError(Throwable throwable) {
System.out.println("Error: " + throwable.getMessage());
}
})
.async();
Response<VideoInfo> response = downloader.getVideoInfo(videoRequest);
VideoInfo video = response.data();
return video;
}
Error:
Error: streamingData not found. playabilityStatus:{"reason":"Sign in to confirm you�re not a bot","contextParams":"Q0FFU0FnZ0I=","status":"LOGIN_REQUIRED"}
URL video: "https://www.youtube.com/watch?v=09R8_2nJtjg&ab_channel=Maroon5VEVO"
I tried to download a YouTube video but I received an error stating that I had to indicate a session to verify that it is not a robot seems to be a YouTube security measure or maybe a mistake on my part I don't know
CODE:
public VideoInfo getVideoInfo(String videoId) throws YoutubeException {
RequestVideoInfo videoRequest = new RequestVideoInfo(videoId)
.callback(new YoutubeCallback() {
@OverRide
public void onFinished(VideoInfo videoInfo) {
System.out.println("Finished parsing");
}
Error:
Error: streamingData not found. playabilityStatus:{"reason":"Sign in to confirm you�re not a bot","contextParams":"Q0FFU0FnZ0I=","status":"LOGIN_REQUIRED"}
URL video: "https://www.youtube.com/watch?v=09R8_2nJtjg&ab_channel=Maroon5VEVO"