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

Use new Localization and Downloader implementations from extractor #2713

Merged
merged 3 commits into from Nov 18, 2019

Conversation

mauriciocolli
Copy link
Contributor

  • Make use of new Localization and Downloader implementations from extractor
  • Show proper text for live stream items (watching count instead of view count)

Depends on TeamNewPipe/NewPipeExtractor#158.

@@ -109,19 +115,34 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
return true;
});

Preference setPreferredLanguage = findPreference(getString(R.string.content_language_key));
/*Preference setPreferredLanguage = findPreference(getString(R.string.content_language_key));
Copy link
Member

@TobiGr TobiGr Nov 1, 2019

Choose a reason for hiding this comment

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

Can you please add a comment that this is not needed due to the changes below?

Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

The list of content countries is now displayed in English. Is this the intended behavior? Before your changes we used the countries' names in their own language.

@mauriciocolli
Copy link
Contributor Author

@TobiGr are you sure? This is how the file looks like as of the last commit.

It seems that currently only the language names are done that way.

@TobiGr
Copy link
Member

TobiGr commented Nov 3, 2019

My bad, I mixed content language and country during my review.

TobiGr
TobiGr previously approved these changes Nov 16, 2019
Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

@mauriciocolli Can you rebase and update the extractor version? It's good to go.

Before, the direct value was given to the user, now it uses the parsed
date so we can match the device's language.

To get the relative time from the parsed dates, we use the PrettyTime
library.

Also introduces a debug option to check the service's original value.
@mauriciocolli
Copy link
Contributor Author

@TobiGr Done.

@TobiGr TobiGr merged commit a8e326c into TeamNewPipe:dev Nov 18, 2019
This was referenced Dec 12, 2019
@mauriciocolli mauriciocolli deleted the compatibility-extractor branch March 7, 2020 20:02
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.

None yet

2 participants