Skip to content

Use new Localization and Downloader implementations from extractor#2713

Merged
TobiGr merged 3 commits intoTeamNewPipe:devfrom
mauriciocolli:compatibility-extractor
Nov 18, 2019
Merged

Use new Localization and Downloader implementations from extractor#2713
TobiGr merged 3 commits intoTeamNewPipe:devfrom
mauriciocolli:compatibility-extractor

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.

});

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

@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
Contributor

@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 mauriciocolli force-pushed the compatibility-extractor branch from 540d63f to 4c02214 Compare November 3, 2019 19:31
@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
Contributor

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
Contributor

@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.

2 participants