Implement time ago parser and improve localization handling#158
Implement time ago parser and improve localization handling#158TobiGr merged 8 commits intoTeamNewPipe:devfrom
Conversation
fd19085 to
05d5ab4
Compare
|
We need review and test on this. Someone willing to help? |
yausername
left a comment
There was a problem hiding this comment.
Looks very good to me!
.../src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudParsingHelper.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
05d5ab4 to
a4949c6
Compare
|
I'll start to work on this again over the next few days (still have some catch up to do). So I did see the PR #196 (related TeamNewPipe/NewPipe#2632), and as a result, no language parsing is needed anymore and english will be forced over others. However, I think the language handling contained in this PR is still useful for NewPipe as we can now force languages easily and, in the future, help parse sites in other languages. |
|
Yes, this is useful, who knows what the future will bring :-) |
|
Hey @mauriciocolli, welcome back!
Yes, that functionality is a good addition. Please keep it. |
7a0bd92 to
6c5af3f
Compare
c99f44b to
49c736d
Compare
In the format '2 days ago' (in English) on a YouTube channel page. (Parser extensible to other pages.)
- Handle special cases for languages where the number is not shown - Rework the Downloader base implementation, allowing for more advanced things to be done - Separate the localization from the content country (just like YouTube let's the user choose both).
- Make use of the local Maven repository
49c736d to
3d21ef5
Compare
|
That were a few lines to review :D Looks fantastic to me. |
|
@mauriciocolli Oh yes. I reverted it in 0c6e2c8 |
Used some of the work that @wojcik-online did as the base, finishing the implementation of the time ago parser.
OPTIONS,HEAD,POST...)Edit: So I did see the PR #196 (related TeamNewPipe/NewPipe#2632), and as a result, no language parsing is needed anymore and english will be forced over others.
However, I think the language handling contained in this PR is still useful for NewPipe as we can now force languages easily and, in the future, help parse sites in other languages.