3045 Commits

Author SHA1 Message Date
Stypox
606bb93535 Merge pull request #1280 from FineFindus/feat/member-channeltab-info 2025-10-04 16:07:49 +02:00
Stypox
9b98978fc1 Add testContentAvailability(), fix missing methods in test interfaces 2025-10-04 15:47:10 +02:00
Stypox
ffbdfafe85 Add ContentAvailability.Unknown, add Nonnull, fix typos 2025-10-04 15:27:59 +02:00
FineFindus
11bbdfee99 [YouTube] Use iterators to check for members-only content 2025-10-04 15:05:54 +02:00
FineFindus
737a4ffcf1 Move ContentAvailability to separate file 2025-10-04 15:05:54 +02:00
FineFindus
e2782bfe52 Add comment that ContentAvailability may not reflect actual availability 2025-10-04 15:05:54 +02:00
FineFindus
cc8edec341 Allow checking for ContentAvailability
Adds a new field to `StreamInfoItem` to denote the availability of the
stream. A stream may be restricted to only certain user groups or times.

This allows users to ignore the stream based on their availability, e.g.
a app may choose to hide all streams that require payment.
2025-10-04 15:05:54 +02:00
FineFindus
51a247b059 [YouTube] add JDoc for membership functions 2025-10-04 15:05:54 +02:00
FineFindus
0da22a962a [YouTube] add test for membersOnly playlist 2025-10-04 15:05:54 +02:00
FineFindus
1b6907ec03 [Youtube] Mark members-only videos
YouTube inserts members-only videos (i.e., videos that require channel
membership to watch) into the Videos tab. Because the extractor unable
to distinguish between them and "normal" videos, they may appear in
subscriptions feeds.
This enables the extractor to check if videos require membership,
allowing clients to filter them.

Ref: https://github.com/TeamNewPipe/NewPipe/issues/12040
Ref: https://github.com/TeamNewPipe/NewPipe/issues/12011
2025-10-04 15:05:53 +02:00
Stypox
ac500b6cd8 Revert "Remove redundant initialization"
This reverts commit ea00238df6.

It's not so bad to make it explicit which value we are initializing fields to; @ Stypox's fault for not noticing during review ;-)
2025-10-04 15:04:57 +02:00
Stypox
837705a1a4 Merge pull request #1381 from TeamNewPipe/TobiGr-patch-1
Some checks failed
CI / build-and-test (push) Has been cancelled
2025-10-02 16:19:16 +02:00
Tobi
be2846d907 Highlight notes and tips 2025-10-02 06:19:35 -07:00
Stypox
52bcf569ce Merge pull request #1323 from absurdlylongusername/minor-code-cleanup 2025-10-02 14:52:36 +02:00
David Asunmo
25113b2453 Minor refactoring in Stream.java 2025-10-02 14:50:11 +02:00
David Asunmo
5066141be0 CamelCase typo 2025-10-02 14:50:11 +02:00
David Asunmo
73d93f8315 List.of IDE suggestions refactoring 2025-10-02 14:50:10 +02:00
David Asunmo
93328a38e6 Refactor AudioStream constructor to use builder instead of explicit parameters. Refactor documentation also 2025-10-02 14:48:42 +02:00
David Asunmo
05d951b2fc Remove matchNamedGroup methods from Parser.java as not available on Android API < 26 2025-10-02 14:48:42 +02:00
David Asunmo
ea00238df6 Remove redundant initialization 2025-10-02 14:48:42 +02:00
David Asunmo
ffb7c48e8a Refactor Description constructor 2025-10-02 14:48:42 +02:00
David Asunmo
89dab90aa7 [SoundCloud] Use Pattern instead of string for regex in SoundcloudStreamLinkHandlerFactory
Use non-capturing groups in regex
Refactor Parser.java
Add more utility methods (will be used in later commits)
2025-10-02 14:48:42 +02:00
David Asunmo
8114af4c01 [Localization] Add toString to DateWrapper for better debugging 2025-10-02 14:48:42 +02:00
David Asunmo
41b77ef2ac Fix typo 2025-10-02 14:48:42 +02:00
David Asunmo
5fcd97104c [SoundCloud] SoundCloudStreamExtractor.getTimeStamp return 0 if no timestamp in url 2025-10-02 14:48:42 +02:00
David Asunmo
d9af459ecf Remove redundant override 2025-10-02 14:48:42 +02:00
David Asunmo
5e7818cd84 Fix typo 2025-10-02 14:48:41 +02:00
Tobi
dd2f24f7d1 Merge pull request #1380 from TeamNewPipe/dependabot/gradle/com.puppycrawl.tools-checkstyle-10.26.1
Bump com.puppycrawl.tools:checkstyle from 10.4 to 10.26.1
2025-10-02 02:44:04 -07:00
dependabot[bot]
1dbb5c8d04 Bump com.puppycrawl.tools:checkstyle from 10.4 to 10.26.1
Bumps [com.puppycrawl.tools:checkstyle](https://github.com/checkstyle/checkstyle) from 10.4 to 10.26.1.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-10.4...checkstyle-10.26.1)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-version: 10.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:32:44 +00:00
Tobi
25a57ae0f0 Merge pull request #1379 from TeamNewPipe/dependabot/gradle/org.junit-junit-bom-5.14.0
Bump org.junit:junit-bom from 5.13.4 to 5.14.0
2025-10-02 02:31:44 -07:00
dependabot[bot]
749e7ee317 Bump org.junit:junit-bom from 5.13.4 to 5.14.0
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit-framework) from 5.13.4 to 5.14.0.
- [Release notes](https://github.com/junit-team/junit-framework/releases)
- [Commits](https://github.com/junit-team/junit-framework/compare/r5.13.4...r5.14.0)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-version: 5.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:02:03 +00:00
Isira Seneviratne
1a5ac2fa37 Fix nested tests 2025-09-18 06:26:32 +05:30
Isira Seneviratne
f38b72ce7d Avoid potential NPEs in Soundcloud extractors 2025-09-18 06:24:18 +05:30
Isira Seneviratne
59e78c2ba4 Fix tests 2025-09-18 05:49:20 +05:30
Isira Seneviratne
f9f71cbbe6 Fix some issues 2025-09-17 07:11:31 +05:30
Isira Seneviratne
8727659d2d Use LocalDateTime instead of LocalDate 2025-09-16 08:07:54 +05:30
Isira Seneviratne
f8d6f94e30 Do additional refactoring 2025-09-16 06:40:58 +05:30
Isira Seneviratne
c79afc0076 Apply code review suggestions 2025-09-13 06:49:02 +05:30
Isira Seneviratne
e9dd84fe66 Rm substring call 2025-09-13 05:04:37 +05:30
Isira Seneviratne
380c30334d Refactor PeerTube date parsing method 2025-09-12 22:16:26 +05:30
Isira Seneviratne
6bc9d32d65 Fix checkstyle issues, added more refactorings 2025-09-12 22:05:27 +05:30
Tobi
b469dcacf0 Merge pull request #1373 from TeamNewPipe/dependabot/gradle/protobufVersion-4.32.1
Some checks failed
CI / build-and-test (push) Has been cancelled
Bump protobufVersion from 4.32.0 to 4.32.1
2025-09-12 04:40:38 -07:00
dependabot[bot]
21b254fa94 Bump protobufVersion from 4.32.0 to 4.32.1
Bumps `protobufVersion` from 4.32.0 to 4.32.1.

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

Updates `com.google.protobuf:protoc` from 4.32.0 to 4.32.1
- [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.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.protobuf:protoc
  dependency-version: 4.32.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-12 09:02:24 +00:00
Isira Seneviratne
2dc17d4a53 Improve tests 2025-09-12 08:17:15 +05:30
Isira Seneviratne
758c31b0a2 Allow retrieval of a non-approximate DateWrapper in YoutubeStreamExtractor 2025-09-12 08:17:14 +05:30
Isira Seneviratne
953189f0ba Update DateWrapper to store an Instant 2025-09-12 08:16:56 +05:30
Tobi
de8219f2a3 Merge pull request #1371 from TeamNewPipe/dependabot/gradle/com.google.code.gson-gson-2.13.2
Some checks failed
CI / build-and-test (push) Has been cancelled
Bump com.google.code.gson:gson from 2.13.1 to 2.13.2
2025-09-11 02:29:09 -07:00
dependabot[bot]
202dc99656 Bump com.google.code.gson:gson from 2.13.1 to 2.13.2
Bumps [com.google.code.gson:gson](https://github.com/google/gson) from 2.13.1 to 2.13.2.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.13.1...gson-parent-2.13.2)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-version: 2.13.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 09:02:31 +00:00
Tobi
5b4feb96c4 Merge pull request #1365 from TeamNewPipe/dependabot/github_actions/actions/setup-java-5
Some checks failed
CI / build-and-test (push) Has been cancelled
Bump actions/setup-java from 4 to 5
2025-08-31 06:35:33 -07:00
dependabot[bot]
80ddc3fb0c Bump actions/setup-java from 4 to 5
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-31 13:33:57 +00:00