Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add whitelist to only retrieve supported YouTube itags/streams #9748

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Feb 4, 2023

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

This PR makes NewPipe compatible with the changes from TeamNewPipe/NewPipeExtractor#488 and TeamNewPipe/NewPipeExtractor#706

Relies on the following changes

TeamNewPipe/NewPipeExtractor#488 and TeamNewPipe/NewPipeExtractor#706 can, but do not have to be merged

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@TobiGr TobiGr added the player Issues related to any player (main, popup and background) label Feb 4, 2023
@TobiGr TobiGr force-pushed the feat/av1-tags branch 2 times, most recently from 47d8cf4 to 6689ed9 Compare February 4, 2023 22:11
@TobiGr TobiGr changed the title Remove AV1 streams from stream list used in player Add whitelist to only retrieve supported YouTubube itags Feb 4, 2023
@TobiGr TobiGr changed the title Add whitelist to only retrieve supported YouTubube itags Add whitelist to only retrieve supported YouTubube itags / streams Feb 4, 2023
@TobiGr TobiGr added the youtube Service, https://www.youtube.com/ label Feb 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented Feb 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Stypox
Copy link
Member

Stypox commented Feb 7, 2023

Great!

This is service-dependent, isn't it? Though I doubt there is any way around this.

@TobiGr
Copy link
Member Author

TobiGr commented Feb 7, 2023

oh yes, I could also add a condition to check the current service to make sure that there are no side effects. I did not test this PR with other services.

@AudricV AudricV changed the title Add whitelist to only retrieve supported YouTubube itags / streams Add whitelist to only retrieve supported YouTube itags/streams Mar 5, 2023
NewPipe Extractor now extracts all YouTube Itags and therefore only those which can be handled by the player need to be retrieved from the list of all available streams.
@TobiGr
Copy link
Member Author

TobiGr commented Apr 17, 2023

Tested with the other services as well. I did not encounter any problems

@TobiGr TobiGr marked this pull request as ready for review April 17, 2023 11:19
@sonarcloud
Copy link

sonarcloud bot commented Apr 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Stypox
Copy link
Member

Stypox commented Apr 20, 2023

Shouldn't the filtering happen on a client level? What if NewPipe isn't able to play a specific video, while Piped is, or viceversa?

@TobiGr
Copy link
Member Author

TobiGr commented Apr 20, 2023

Shouldn't the filtering happen on a client level? What if NewPipe isn't able to play a specific video, while Piped is, or viceversa?

You are correct. And for exactly that reason this PR is opened in the client / app repo and not the extractor repo :)

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't know why I thought we were on the extractor... Anyway, looks good to me. Note that we have getUrlAndNonTorrentStreams too, which is used for external players, and we might want to prevent/allow other kinds of streams from being opened in external streams, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
player Issues related to any player (main, popup and background) youtube Service, https://www.youtube.com/
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants