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

Updated extractor to latest revision and fix compile errors #8531

Merged
merged 3 commits into from
Jul 4, 2022

Conversation

litetex
Copy link
Member

@litetex litetex commented Jun 21, 2022

What is it?

  • Codebase improvement (dev facing)

Description of the changes in your PR

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.

Relies on the following changes

Due diligence

@litetex litetex marked this pull request as draft June 21, 2022 19:49
@litetex litetex force-pushed the fix-extractor-compile-errors-846 branch 3 times, most recently from 506d8cc to b4f3db6 Compare June 21, 2022 20:21
@litetex
Copy link
Member Author

litetex commented Jun 21, 2022

Note: Because the changes for #8153 got already merged into the extractor but not into NewPipe itself there are currently build errors.
Once #8153 is merged this PR can be rebased and merged.

.findFirst()
.map(StreamingService::getServiceInfo)
.map(StreamingService.ServiceInfo::getName)
.orElse("<unknown>");
Copy link
Member

Choose a reason for hiding this comment

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

String resource?

Copy link
Member Author

Choose a reason for hiding this comment

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

Wouldn't recommend:

  1. This should never happen in the first place (however it's possible because we use ints instead of valid objects)
  2. We are inside a static method we would need some kind of context here (and in all subsequent calls)
  3. I don't think we have to translate this
  4. It was a hardcoded string before

@litetex litetex force-pushed the fix-extractor-compile-errors-846 branch from b4f3db6 to 04e8e03 Compare June 22, 2022 17:47
@litetex litetex marked this pull request as ready for review June 22, 2022 18:05
@sonarqubecloud
Copy link

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

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.

LGTM

@Stypox Stypox merged commit 81369d7 into TeamNewPipe:dev Jul 4, 2022
@litetex litetex deleted the fix-extractor-compile-errors-846 branch July 6, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants