2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-29 05:18:05 +00:00

Compare commits

..

10 Commits
v0.24.8 ... dev

Author SHA1 Message Date
Tobi
0023b22095
Merge pull request #1352 from Stypox/yt-confirm-not-bot
[YouTube] Add custom error for "Sign in to confirm ..."
2025-08-28 10:20:25 -07:00
Tobi
555ed856f5
Merge pull request #1364 from TeamNewPipe/dependabot/gradle/protobufVersion-4.32.0
Bump protobufVersion from 4.31.1 to 4.32.0
2025-08-28 10:02:54 -07:00
Stypox
b8bd4cda8c
[YouTube] Add custom error for "Sign in to confirm ..." 2025-08-28 16:56:39 +02:00
dependabot[bot]
a7f263f4dd
Bump protobufVersion from 4.31.1 to 4.32.0
Bumps `protobufVersion` from 4.31.1 to 4.32.0.

Updates `com.google.protobuf:protobuf-javalite` from 4.31.1 to 4.32.0

Updates `com.google.protobuf:protoc` from 4.31.1 to 4.32.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-javalite
  dependency-version: 4.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.protobuf:protoc
  dependency-version: 4.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 19:28:45 +00:00
Tobi
a524390e39
Merge pull request #1368 from TeamNewPipe/dependabot/gradle/org.jsoup-jsoup-1.21.2
Bump org.jsoup:jsoup from 1.21.1 to 1.21.2
2025-08-25 09:26:55 -07:00
dependabot[bot]
826188db8c
Bump org.jsoup:jsoup from 1.21.1 to 1.21.2
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.21.1 to 1.21.2.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.21.1...jsoup-1.21.2)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.21.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 16:18:30 +00:00
wb9688
6f51a23fa5
Merge pull request #1358 from TeamNewPipe/fix-gradle-jdoc
Fix aggregatedJavadocs task and update API link to JDK 11
2025-08-01 11:29:51 +02:00
TobiGr
b5c7d57d63 Fix aggregatedJavadocs task and update API link to JDK 11 2025-08-01 10:14:03 +02:00
Tobi
f668a0bc6a
Merge pull request #1356 from TeamNewPipe/fix-jdoc
Fix JDoc and automated doc build
2025-08-01 00:39:38 -07:00
Tobi
8476a463e8
Fix JDoc and automated doc build
See https://github.com/TeamNewPipe/NewPipeExtractor/actions/runs/16660575612/job/47156509194#step:5:43

NewPipeExtractor/NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemLockupExtractor.java:29: error: self-closing element not allowed
 * This extractor is currently (2025-07) only used to extract related video streams.<br/>
2025-08-01 07:59:08 +02:00
5 changed files with 25 additions and 6 deletions

View File

@ -68,10 +68,10 @@ subprojects {
// https://discuss.gradle.org/t/best-approach-gradle-multi-module-project-generate-just-one-global-javadoc/18657/21
tasks.register('aggregatedJavadocs', Javadoc) {
destinationDir = file("${layout.buildDirectory}/docs/javadoc")
destinationDir = layout.buildDirectory.file("docs/javadoc").get().asFile
title = "$project.name $version"
// options.memberLevel = JavadocMemberLevel.PRIVATE
options.links 'https://docs.oracle.com/javase/8/docs/api/'
options.links 'https://docs.oracle.com/javase/11/docs/api/'
options.encoding 'UTF-8'
// Fixes unknown tag @implNote; the other two were added precautionary
options.tags = [

View File

@ -28,14 +28,14 @@ checkstyleTest {
ext {
rhinoVersion = '1.8.0'
protobufVersion = '4.31.1'
protobufVersion = '4.32.0'
}
dependencies {
implementation project(':timeago-parser')
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
implementation 'org.jsoup:jsoup:1.21.1'
implementation 'org.jsoup:jsoup:1.21.2'
implementation "com.google.code.findbugs:jsr305:$jsr305Version"
implementation "com.google.protobuf:protobuf-javalite:$protobufVersion"

View File

@ -0,0 +1,11 @@
package org.schabi.newpipe.extractor.exceptions;
/**
* Content can't be extracted because the service requires logging in to confirm the user is not a
* bot. Can usually only be solvable by changing IP (e.g. in the case of YouTube).
*/
public class SignInConfirmNotBotException extends ParsingException {
public SignInConfirmNotBotException(final String message) {
super(message);
}
}

View File

@ -53,6 +53,7 @@ import org.schabi.newpipe.extractor.exceptions.PaidContentException;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.exceptions.PrivateContentException;
import org.schabi.newpipe.extractor.exceptions.YoutubeMusicPremiumContentException;
import org.schabi.newpipe.extractor.exceptions.SignInConfirmNotBotException;
import org.schabi.newpipe.extractor.linkhandler.LinkHandler;
import org.schabi.newpipe.extractor.localization.ContentCountry;
import org.schabi.newpipe.extractor.localization.DateWrapper;
@ -901,7 +902,14 @@ public class YoutubeStreamExtractor extends StreamExtractor {
}
}
throw new ContentNotAvailableException("Got error: \"" + reason + "\"");
// "Sign in to confirm that you're not a bot"
if (reason != null && reason.contains("a bot")) {
throw new SignInConfirmNotBotException(
"YouTube probably temporarily blocked this IP, got error "
+ status + ": \"" + reason + "\"");
}
throw new ContentNotAvailableException("Got error " + status + ": \"" + reason + "\"");
}
private void fetchHtml5Client(@Nonnull final Localization localization,

View File

@ -26,7 +26,7 @@ import javax.annotation.Nullable;
/**
* Note:
* This extractor is currently (2025-07) only used to extract related video streams.<br/>
* This extractor is currently (2025-07) only used to extract related video streams.<br>
* The following features are currently not implemented because they have never been observed:
* <ul>
* <li>Shorts</li>