TeamNewPipe / TeamNewPipe/NewPipeExtractor
Allow clients to determine whether data is intentionally unavailable
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 602
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 6
Description
For instance, bandcamp users will always see
when viewing streams and
when viewing comments. The same applies to the "subscriber count", which is by design not provided by Bandcamp.
The reason is that the client (the NewPipe app) cannot differentiate between data that has failed to extract and data that is generally not available for the service.
There's an infinite amount of possible solutions to this:
- return
-1if extraction fails,-2if not available by design - return
nullif extraction fails,-1if intentional - return
-1if extraction fails,nullif intentional - return
Optional.of(-1)if extraction fails, return an emptyOptionalif intentional - add extra method call that determines which fields are filled by the provider (similar to
MediaCapabiliy) - …
If data is not available intentionally, NewPipe should hide the affected views. This makes the services that don't provide the corresponding data fields look less broken in the app.
Please comment what you think would be the best solution to this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how extractor results represent streams, comments, and subscriber counts, and how the NewPipe app renders missing values. Compare the proposed failure and intentional-unavailability semantics, including the existing MediaCapability approach, then seek agreement on one API design before defining completion criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100