14 Commits

Author SHA1 Message Date
Thilo Kogge
18572da79d removed use of reflection in PatternsManager.java. For this the Code to generate the Localization files was extracted into its own submodule.
The generator now also creates a class that Holds a Map of all Localizations for the timeago-parser.
2025-03-27 19:39:33 +01:00
litetex
677c048f1b
Only include `jsr305` and not complete spotbugs
Only ``javax.annotation.Nonull`` or ``javax.annotation.Nullable`` are currently in used which means that spotbugs can and should be removed.

See https://github.com/TeamNewPipe/NewPipeExtractor/issues/1278 for details
2025-02-15 14:23:33 +01:00
ThetaDev
ad97f08048
[YouTube] Fix parsing short relative date formats (English only) (#1068) 2023-06-18 21:41:29 +02:00
Isira Seneviratne
e101d58ae7 Use EnumMap in PatternsHolder. 2022-08-26 08:15:21 +05:30
litetex
a2cbdf0991 Updated to JUnit 5 2021-12-27 21:08:08 +01:00
TacoTheDank
cf9e678223 Declare common dependency versions in root gradle 2021-08-07 17:51:09 -04:00
dependabot[bot]
ad403ce73e
Bump spotbugs-annotations from 4.0.2 to 4.2.3
Bumps [spotbugs-annotations](https://github.com/spotbugs/spotbugs) from 4.0.2 to 4.2.3.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.0.2...4.2.3)

---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 09:57:42 +00:00
TobiGr
838dc1ab54 Fix vulnerability in junit 2020-12-21 23:22:16 +01:00
Isira Seneviratne
ee3af63c04 Switch to ChronoUnit. 2020-11-01 06:28:53 +05:30
wb9688
aa277e1b6a Upgrade other dependencies 2020-05-28 11:34:42 +02:00
wb9688
979c5a7502 Use our fork of nanojson 2020-04-17 19:36:42 +02:00
Mauricio Colli
3638f0e0ea
Implement time ago parser and improve localization handling
- 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).
2019-11-03 15:46:21 -03:00
Mauricio Colli
27f61e049d
Add time units strings and utilities 2018-03-22 20:31:02 -03:00
Mauricio Colli
f787b375e5
Created gradle module and moved existing code to new one 2018-03-14 00:44:02 -03:00