Commit graph

57 commits

Author SHA1 Message Date
Omar Roth 6930570fa2
Add HTTPClient pool 2019-10-25 12:58:16 -04:00
Omar Roth 7524b5e349
Move feed_menu and default_home into user preferences 2019-10-20 20:43:33 -04:00
Omar Roth be055d9dcb
Add support for custom playlists 2019-10-15 21:17:14 -04:00
Omar Roth 4361ea9686
Update DB calls for 0.31.0 2019-09-24 13:38:50 -04:00
Omar Roth 26107bd6c3
Minor refactor 2019-08-27 08:08:26 -05:00
psvenk f54fbd057e Add prefers-color-scheme support (#601)
* Add prefers-color-scheme support

This should fix <https://github.com/omarroth/invidious/issues/559>.
The cookie storage format has been changed from boolean
("true"/"false") to tri-state ("dark"/"light"/""), so that users
without a cookie set will get dark mode if they have enabled the dark
theme in their operating system. The code for handling the cookie
state, along with the user's operating system theme, has been factored
out into a new function `update_mode`, which is called both at window
load and at the "storage" event listener, because the "storage" event
listener is only trigerred when a change is made to the localStorage
from another tab/window (for more info - see
<https://stackoverflow.com/a/4679754>).
2019-08-15 11:29:55 -05:00
Leon Klingele 46577fb128
Add support for player styles
This currently includes the following styles:

- Invidious, the default
- YouTube, using a centered play button and always visible video control bar

Implements https://github.com/omarroth/invidious/issues/670.
Supersedes https://github.com/omarroth/invidious/pull/661.
2019-08-09 02:04:36 +02:00
Omar Roth 99b0b4f5b8
Fix escaping for materialized view SQL 2019-07-09 09:34:19 -05:00
Omar Roth c34a24b633
Attempt to optimize query for subscription feed 2019-07-07 14:00:42 -05:00
Omar Roth d1635cf24e
Set max preference size 2019-06-08 16:04:55 -05:00
Omar Roth 8c944815bc
Minor refactor 2019-06-07 21:13:50 -05:00
Omar Roth 27e032d10d
Add '/api/v1/auth/feeds' 2019-06-07 21:13:50 -05:00
Omar Roth 108648b427
Optimize query for creating subscription feeds 2019-06-02 11:48:18 -05:00
Omar Roth 18d66ddded
Add 'needs_update' column for scheduling feed refresh 2019-06-01 10:19:18 -05:00
Omar Roth 4cf3c6a616
HTML-escape strings to '/api/v1/auth/preferences' 2019-05-30 19:00:38 -05:00
Omar Roth e119459411
Add GET '/authorize_token' 2019-05-15 12:26:29 -05:00
Omar Roth 56fe3ede5b Add annotation preferences 2019-04-30 23:39:04 -05:00
Omar Roth bb5a1ad513 Add 'continue_autoplay' preference 2019-04-19 09:38:27 -05:00
Omar Roth 2a6c81a89d Add authentication API 2019-04-18 16:23:50 -05:00
Omar Roth b6fff53b21 Refactor HTTP::Client calls into make_client 2019-04-17 09:06:31 -05:00
Omar Roth 26168a9520 Refactor CSRF tokens (using format in #473) 2019-04-15 23:23:40 -05:00
Omar Roth e1c78fcbd3 Update view names to avoid collisions 2019-04-10 19:56:38 -05:00
Omar Roth aad0f90a9d Add 'sign_token' 2019-04-10 16:58:46 -05:00
Omar Roth 31312747e9 Fix from_yaml in ConfigPreferences 2019-04-03 19:04:33 -05:00
Omar Roth bd4f5ebcdf Add option to configure default user preferences 2019-04-03 11:38:41 -05:00
Omar Roth 1b78001201 Use struct for allocations 2019-03-29 16:30:02 -05:00
Omar Roth 388e58bf1e Update handling for preferences 2019-03-28 13:43:40 -05:00
Omar Roth 0c6cede287 Format files and trim trailing whitespace 2019-03-23 14:05:13 -05:00
Omar Roth 88b70973cc Add 'premiereTimestamp' to /api/v1/videos 2019-03-22 14:53:19 -05:00
Omar Roth 6e51189d4d Expire nonce on register 2019-03-20 11:02:04 -05:00
Omar Roth 9091b36249 Don't require CAPTCHA for login 2019-03-19 20:13:16 -05:00
Omar Roth e738e57e26 Add 'local' option to preferences 2019-03-12 21:05:49 -05:00
Omar Roth a39b1583da Add administrator preferences 2019-03-01 16:06:45 -06:00
Omar Roth bdc9196b4a Escape email when creating feed for Google account 2019-02-22 20:35:37 -06:00
Omar Roth f1820ffaf7 Add fix for user array 2019-02-11 20:47:26 -06:00
Omar Roth 3646395f1d Store session_ids in separate table 2019-02-10 12:33:29 -06:00
Omar Roth c9bc081f8c Respect DEFAULT_USER_PREFERENCES in video params 2019-01-31 15:06:53 -06:00
Omar Roth c2c224b16f Use fibers to try to speed up importing of channels 2019-01-02 19:28:59 -06:00
Omar Roth a160c645c9 Add support for translations 2018-12-20 15:32:09 -06:00
Omar Roth d0b30ad977 Don't pass HTTP client in args 2018-12-15 12:05:52 -06:00
Omar Roth 934c81b02f Add second hand to image CAPTCHA 2018-11-25 18:26:21 -06:00
Omar Roth 3c98601f35 Add job for pulling popular videos 2018-11-25 18:08:51 -06:00
Omar Roth ad20d6359b Add 'expire' to filter invalid tokens 2018-11-19 18:41:11 -06:00
Omar Roth cd482cfd89 Add more informative error response on incorrect CAPTCHA 2018-11-17 13:26:24 -06:00
Omar Roth d185ba84bf Remember nonce to prevent replay attacks 2018-11-17 13:18:12 -06:00
Omar Roth 4b76b93610 Add continuous playback 2018-11-11 11:45:05 -06:00
Omar Roth 1465cefa17 Move HMAC tokens into users.cr 2018-11-11 09:44:16 -06:00
Omar Roth e39dec9778 Add option to listen by default 2018-10-30 09:41:23 -05:00
Omar Roth 921c34aa65 Create materialized views for Google accounts 2018-10-10 16:10:58 -05:00
Omar Roth 60038b29f1 Fix typo in user defaults 2018-09-21 11:06:35 -05:00