Commit graph

2642 commits

Author SHA1 Message Date
wb9688
c2fba29994 Merge pull request #3511 from wb9688/ktlint
Ktlint
2020-05-04 15:13:07 +02:00
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
wb9688
d770cf5657 Auto-format using Ktlint 2020-05-01 20:13:21 +02:00
wb9688
205c5ff2ca Optimize imports 2020-05-01 20:13:01 +02:00
Stypox
f67aef64f7 Update to ExoPlayer 2.11.4 2020-05-01 15:03:54 +02:00
Tobias Groza
1d8cd350a0 Merge pull request #3495 from Stypox/fix-rotation
Fix rotation
2020-04-27 09:18:08 +02:00
Stypox
af33f57e87 Fix crashes on rotation by checking for null 2020-04-27 09:01:24 +02:00
bopol
b2266396e8 store isTv value to prevent calculating it again and again 2020-04-26 00:36:45 +02:00
bopol
f0f25b0693 Fix crash on Android 4.4 and surely other sdk versions 2020-04-25 23:38:34 +02:00
TheLastGimbus
9ae51c0a2b Update progress bar on fast forward/rewind 2020-04-25 15:46:56 +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
Stypox
053038d005 Merge pull request #3065 from GradyClark/dev
Added the ability to remove all watched videos from a local playlist
2020-04-23 23:52:28 +02:00
Stypox
1602881f4e Use centralized CompositeDisposable instead of custom Disposable
Also do not show any dialog if the user is aready removing watched videos in a local playlist
2020-04-23 23:35:00 +02:00
TobiGr
1d9e54b086 Merge pull request Android TV support #2806
Closes #2806
2020-04-23 22:33:20 +02:00
TobiGr
291079a55b Fix button ripples in VideoDetailFragment 2020-04-22 22:35:41 +02:00
Stypox
6d5f24c360 Fix pause button is not focused on player control activation 2020-04-21 09:25:09 +02:00
Grady Clark
071f473787 Code cleanup, and best practices 2020-04-21 01:57:23 -05:00
Grady Clark
0236a69f4a fixed naming and formatting issues 2020-04-21 01:03:42 -05: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
1adcaf6ac0 remove duplicate line 2020-04-20 21:45:32 -05:00
Vincent Nagel
b50a01878b fix checkstyle errors 2020-04-20 21:45:32 -05:00
Vincent Nagel
51eb594695 added logging when context null in onPrefTreeClick 2020-04-20 21:45:32 -05:00
Vincent Nagel
5ba58e1ff5 setupTabs() if ageRestrictedContent pref changed 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
wb9688
78939e3840 Open comment author on TV at long press 2020-04-20 13:37:35 +02:00
bopol
2e1a638a93 use nanojson instead of org.json 2020-04-20 11:02:45 +02:00
Tobias Groza
4b07caae90 Merge pull request #3345 from mitosagi/error-with-bookmarks
Fix repeated exceptions in Bookmarked Playlists
2020-04-19 22:00:31 +02:00
wb9688
d82c2d440c Merge pull request #3414 from Stypox/recaptcha
Fix ReCaptcha Activity for another type of recaptcha page
2020-04-19 19:49:01 +02:00
Stypox
8c862bd668 Enqueue on long click on background/popup in channel 2020-04-19 10:34:07 +02:00
Grady Clark
0acac3ffb7 Removed redundant code
reorganized code
2020-04-16 12:58:16 -05:00
Stypox
c62e363ba5 Save and restore cookies to/from preferences
So that the user does not have to solve a recaptcha every time he opens the app
2020-04-15 13:30:27 +02:00
Stypox
9620cf2051 Remove duplicate check if cookies are already present 2020-04-15 13:30:27 +02:00
Stypox
1de5323696 Fix recaptcha activity for another type of recaptcha page
Try to get cookies from pages even when they start loading, because non-html pages like ones with `pbj=1` never stop loading.
Try to extract the cookie directly from the redirection url, by looking at the field "google_abuse=".
Add `GOOGLE_ABUSE_EXEMPTION=` to the youtube recaptcha cookies.
2020-04-15 13:30:27 +02:00
TheLastGimbus
acb317a9c5 Add listeners in activity 2020-04-14 22:06:32 +02:00
Grady Clark
e28d827df5 Merge branch 'dev' of https://github.com/TeamNewPipe/NewPipe into dev 2020-04-14 13:24:57 -05:00
Grady Clark
b85ef0e0a7 Changed "Remove Watched":
- Will now execute on the io thread
- Added confirmation dialog
  - Warning the user, and asking if they also want to remove partially watched videos
2020-04-14 13:15:07 -05:00
Alexander--
cfb5c56800 When drawer opens, always place focus at it's start 2020-04-12 09:39:32 +06:59
Alexander--
4cfeff6cbd Don't break navigation if player Views other than controls are focused 2020-04-11 16:04:38 +06:59
wb9688
a44582d958 Merge pull request #3410 from wb9688/fix-restricted
Show error when video has age limit and setting is disabled
2020-04-11 09:44:25 +02:00
wb9688
2a7f240bb0 Hide tabs when a video is age restricted 2020-04-11 09:30:12 +02:00
Alexander--
a896f955f6 Fix Checkstyle violations in MediaSourceManager 2020-04-11 09:51:50 +06:59
Alexander--
a5e28105ac Comply with Checkstyle rules 2020-04-11 09:02:22 +06:59
Alexander--
08459b3a90 Merge remote-tracking branch 'newpipe/dev' into rebase 2020-04-11 08:30:40 +06:59
Alexander--
2cac8a739d Merge remote-tracking branch 'newpipe/dev' into rebase 2020-04-11 08:24:05 +06:59
Tobias Groza
fc02abc918 Merge pull request #3294 from mauriciocolli/fix-network-issues-detection
Fix detection of network related exceptions
2020-04-10 23:10:34 +02:00
Stypox
44fb0869b4 Fix checkstyle issues and improve code formatting
Also calculate differently the moved distance of a pointer: use euclidean and not manhattan geometry
2020-04-10 22:12:45 +02:00