Commit graph

188 commits

Author SHA1 Message Date
wb9688
2f237c38f6 Merge pull request #2727 from vnagel/ageRestrictedContent
Restricted mode setting for youtube
2020-05-04 15:05:11 +02:00
Tobias Groza
cceb601be2 Merge pull request #3480 from wb9688/update-nanojson
Use our nanojson fork
2020-05-02 16:17:29 +02:00
wb9688
15719e4dde Use our nanojson fork 2020-05-02 16:03:15 +02:00
bopol
1e4e731a6a Better detection of TV devices
Some devices were not detected as TV even though they are
2020-04-25 12:04:44 +02:00
Vincent Nagel
6bd25dc805 rename setting to "YouTube restricted mode" 2020-04-20 21:47:32 -05:00
Vincent Nagel
eed9fe2684 renamed to "restricted mode" 2020-04-20 21:46:40 -05:00
Vincent Nagel
51eb594695 added logging when context null in onPrefTreeClick 2020-04-20 21:45:32 -05:00
Vincent Nagel
bd1c43cd37 ageRestrictedContent cookie only sent for youtube
Now the age restricted content cookie is only sent when sending a
request to youtube. There's no need to remove the cookie when the
service changes because whether to add the cookie is determined by
looking at the url the request is being sent to.
2020-04-20 21:45:32 -05:00
Vincent Nagel
b1c310ce22 ageRestrictedContent first draft
Cookie updated whenever ageRestrictedContent setting is changed or
service is changed. Right now there is only a cookie for youtube, but
cookies for other services could be added in the future.

Problems with this approach: Even when the service is set to youtube,
the downloader doesn't only request youtube urls e.g. it also sends
reqeusts to i.ytimg.com, suggestqueries.google.com, and yt3.ggpht.com.
The ageRestrictedContent cookie is not normally sent when sending
requests to these other urls, so doing so might have unknown effects.
2020-04-20 21:45:32 -05:00
Alexander--
2cac8a739d Merge remote-tracking branch 'newpipe/dev' into rebase 2020-04-11 08:24:05 +06:59
wb9688
9c8349a8ed Move things back to its original place 2020-04-02 15:57:50 +02:00
wb9688
ac264464ef Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
Alexander--
6253ff6a36 Merge remote-tracking branch 'newpipe/dev' into rebase 2020-03-30 16:54:51 +06:59
TobiGr
fb75afc99f Seek duration should not be rounded up when opening the settings, even if inexact seek is disabled 2020-03-25 22:34:02 +01:00
Mauricio Colli
5ac62b9bdb Make duration plurals naming consistent 2020-03-19 09:44:13 -03:00
Alexander--
6f6d33153b Merge remote-tracking branch 'newpipe/dev' into rebase 2020-03-15 09:08:01 +06:59
Mauricio Colli
229ad77800 Localize duration strings used in feed settings using plurals 2020-03-14 00:12:53 -03:00
Mauricio Colli
a73b752fa2 Change feed groups header title and icon from feed representing "All" 2020-03-14 00:12:37 -03:00
Mauricio Colli
ee00c8c26f Implement new feed and subscriptions groups
- Introduce Groupie for easier lists implementations
- Use some of the new components of the Android Architecture libraries
- Add a bunch of icons for groups, using vectors, which still is
compatible with older APIs through the compatibility layer
2020-03-14 00:12:31 -03:00
Alexander--
a1d056bdb8 Merge remote-tracking branch 'newpipe/dev' into rebase 2020-03-12 04:48:37 +06:59
yausername
8dd9b7caa5 refactor checkpointing 2020-03-07 20:09:05 +01:00
yausername
17d44c22f2 checkpoint db before export 2020-03-07 20:09:05 +01:00
XiangRongLin
51eff0574e Update app/src/main/java/org/schabi/newpipe/settings/VideoAudioSettingsFragment.java
Co-Authored-By: Stypox <stypox@pm.me>
2020-03-03 21:41:15 +01:00
Xiang Rong Lin
4c2efaac2a Change toast string resource to be useable with different languages 2020-03-03 19:50:50 +01:00
Xiang Rong Lin
7d941f2c27 Show a toast when seek duration was rounded up 2020-03-03 19:40:10 +01:00
Xiang Rong Lin
6d95a5f3d2 Use DateUtils constant for 1000 2020-03-03 19:40:10 +01:00
Xiang Rong Lin
2f4b8d9aa6 Round seek duration up instead of setting it to 10 seconds 2020-03-03 19:40:10 +01:00
Xiang Rong Lin
3bdb8cb717 Update seek options on inexact seek option change.
Reset to 10 seconds when previous value is not valid anymore
2020-03-03 19:40:10 +01:00
Xiang Rong Lin
5aea971cb2 If inexact seekt is used, hide 5,15,25 seconds seek duration options when opening settings 2020-03-03 19:40:10 +01:00
Alexander--
c5c7c41c8f Merge remote-tracking branch 'newpipe/dev' into rebase 2020-02-26 05:56:09 +06:59
bopol
ce38410f54 use plural string for dynamic_seek_duration_description 2020-02-17 10:12:08 +01:00
bopol
b13c03a99f created default_localization_key 2020-02-16 22:41:32 +01:00
bopol
9020ba6280 Multiple localization fixes
With the extractor PR, fixes title & description shown in the wrong language.
Fixed views / spectators counts possibly in the wrong language
Fixed live spectators not showing full count on detail page
Fixed LIVE shown on players, it shows translated instead

Fixed Videos string in search / three dots not available in Weblate
(because it was videos, but there already was a plural string named videos, in Weblate)

Subscriber count is always giving the short count.
We can't get exact number since this YouTube update: https://support.google.com/youtube/thread/6543166
But only short count (B, M, k), so showing full number, eg for 1.9M: 1,900,000, is wrong because the number could be 1,923,490 or 1,897,789…

Added a « sytem default » option to content language and country language selector.
It's the one selected by default (not en-GB anymore then), and correspond to the
language of the system / country of the system
By system I mean phone, tablet, TV…

Fixed russian showing - before time ago (eg 19hrs ago)
This is a workaround fix, I opened an issue on prettytime library repo.

Fixed russian plurals:
other was used instead of many for videos and subscribers

Fixed seek_duration english only
2020-02-15 12:40:23 +01:00
Alexander--
971a83fd55 Merge remote-tracking branch 'newpipe/dev' into rebase 2020-02-06 02:44:08 +06:59
TobiGr
13b747263a Improve formatting 2020-02-01 15:35:33 +01:00
bopol
953fd580f7 fix toast on app language change
I forgot to change the key here when I renamed it
2020-02-01 15:30:51 +01:00
bopol
649e188b67 Merge remote-tracking branch 'upstream/dev' into dev
merging dev
2020-02-01 15:11:01 +01:00
TobiGr
8a417a127f Fix formatting and use lamda functions 2020-02-01 13:41:03 +01:00
bopol
a74f0873a3 fix wrong language shown many popup dialogs
Changed android.R.string.ok, which is "OK", into R.string.finish, which is also OK, but from our strings
Then for a small amount of languages that don't have Android translation, it will show the good string.
2020-02-01 09:44:49 +01:00
bopol
eaed951dbd app language: refactoring
renamed NewPipe's language into App language, and same for all the
concerning thing (keys, comments…)

we now call assureCorrectAppLanguage(CONTEXT) in activities needing it
instead of changeAppLanguage(getAppLocale(CONTEXT), RESOURCES)
changeAppLanguage becomes private.
2020-01-29 21:21:00 +01:00
Alexander--
909d1bbccc Rename FireTvUtils to AndroidTvUtils and isFireTv() to isTV()
Because those methods are no longer exclusive to Amazon devices
2020-01-29 03:16:33 +06:59
Harshal Lele
f99ac44a99 reformatted code 2020-01-28 20:54:24 +05:30
Harshal Lele
c4c50d25cd reformatted and commented code 2020-01-28 20:14:35 +05:30
Harshal Lele
a8d4964be9 ask for display over other apps permission in settings 2020-01-25 22:30:49 +05:30
bopol
3dd492e82b app language now changes time formatting (3hrs ago), was system language b4 2020-01-09 15:51:41 +01:00
bopol
daa4d852f2 removed unused imports 2020-01-09 12:15:01 +01:00
bopol
af690618d4 changed the way to change language, now is «NewPipe's language» selector 2020-01-09 09:40:05 +01:00
Alexander--
1a01d8b5af Merge remote-tracking branch 'newpipe/dev' into rebase 2020-01-01 12:55:05 +06:59
yausername
e9196eb852 made instance list url non translatable 2019-12-31 20:10:51 +05:30
yausername
f44cd776a3 fix add instance dialog 2019-12-15 01:30:47 +05:30