TeamNewPipe / TeamNewPipe/NewPipeExtractor

Allow clients to determine whether data is intentionally unavailable

Open
#624 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement multiservice
Dominant language
Java
Stars
2k
Forks
602
Avg merge
3d 6h
Merged PRs (30d)
6

Description

For instance, bandcamp users will always see upvote icon, downvote icon, "Disabled" when viewing streams and image 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 -1 if extraction fails, -2 if not available by design
  • return null if extraction fails, -1 if intentional
  • return -1 if extraction fails, null if intentional
  • return Optional.of(-1) if extraction fails, return an empty Optional if 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.