Commit graph

43 commits

Author SHA1 Message Date
Omar Roth b1fc80b79a
Update sub_count extractor 2019-09-12 21:09:23 -04:00
Omar Roth 7b53b6bfef
Shrink continuation cursor for YouTube comments 2019-09-04 15:47:27 -04: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
Omar Roth f18d8229c0
Refactor continuation protocol buffers 2019-07-20 20:18:08 -05:00
Omar Roth 1b74a04efd
Add 'force_resolve' to fix issues with rate limiting 2019-07-18 18:51:10 -05:00
Omar Roth e5fa5df7be
Chunk video files to bypass throttling 2019-07-04 23:29:28 -05:00
Omar Roth 041debcd93
Revert "Chunk videoplayback response to avoid throttling"
This reverts commit 818cd2454d.
2019-07-01 10:45:09 -05:00
Omar Roth e30d70b6d4
Refactor proxy_list into global 2019-06-28 21:17:56 -05:00
Omar Roth 818cd2454d
Chunk videoplayback response to avoid throttling 2019-06-26 14:43:33 -05:00
Omar Roth 801dffd571
Fix RSS content-type 2019-06-07 21:39:32 -05:00
Omar Roth 2febc268f7
Fix warnings in Crystal 0.29 2019-06-07 21:13:50 -05:00
Omar Roth 8c944815bc
Minor refactor 2019-06-07 21:13:50 -05:00
Omar Roth 352e409a6e
Fix toggle_theme when visiting preferences with JS disabled 2019-06-04 20:13:58 -05:00
Omar Roth bdfe170c3b
Fix length seconds for videos with longer duration 2019-05-11 10:59:47 -05:00
Omar Roth b6fff53b21 Refactor HTTP::Client calls into make_client 2019-04-17 09:06:31 -05:00
Omar Roth b51fd7fc13 Add view count to video items 2019-04-14 17:43:44 -05:00
Omar Roth 99aa214859 Add 'thumbnail_id' to playlists 2019-03-17 12:21:47 -05:00
Omar Roth bc1e62ce51 Add 'external_port' 2019-03-08 11:37:52 -06:00
Omar Roth 1435516a9c Add port number to host URL 2019-03-05 12:56:59 -06:00
Omar Roth 17cf0772fb Set domain to be nil by default 2019-03-03 12:02:15 -06:00
Omar Roth 9a1f4de323 Convert intervals to integers 2019-02-20 09:37:33 -06:00
Omar Roth 83493237a5 Add support for translating time intervals 2019-02-20 08:49:54 -06:00
Omar Roth 7a9ef0d664 Add produce_channel_playlists_url 2019-02-09 10:15:14 -06:00
Omar Roth 276662a147 Use IO::Memory for creating continuation tokens 2019-02-04 15:17:10 -06:00
Omar Roth 20c4d213d9 Use config.domain in place of hardcoded value 2019-01-19 09:10:52 -06:00
Omar Roth 2be43c17ab Sample proxies to avoid overloading single proxy 2018-11-20 11:18:48 -06:00
Omar Roth 16964ca6ce Add 'region' parameter for bypassing region locks 2018-11-17 17:33:30 -06:00
Omar Roth 4875aa1d7e Add partial support for video duration in thumbnails 2018-10-20 20:37:55 -05:00
Omar Roth 5c87cf1547 Update subscribe buttons 2018-10-19 11:14:26 -05:00
Omar Roth 35e63fa3f5 Use materialized views for subscription feeds 2018-10-09 08:40:29 -05:00
Omar Roth 4f91854bd3 Fix typo 2018-09-05 21:10:32 -05:00
Omar Roth 29a21860ae Strip leading slashes from referers 2018-09-05 21:07:19 -05:00
Omar Roth 25c3ee034e Minor refactor 2018-09-04 08:52:30 -05:00
Omar Roth 4760b3c6e7
Merge pull request #116 from omarroth/add-playlists
Add playlist page and endpoint
2018-08-17 11:01:36 -05:00
Omar Roth 3ba2a7d921 Fix referers 2018-08-17 10:19:20 -05:00
Omar Roth bb0b60e575 Add playlist page and endpoint 2018-08-16 14:26:16 -05:00
Omar Roth c09b41a8f8 Don't redirect to current page 2018-08-08 20:26:02 -05:00
Omar Roth 3ebe9139b7 Provide response on video error 2018-08-08 10:20:07 -05:00
Omar Roth 2c4a3b19e2 Add support for 'seconds' in decode_date 2018-08-07 08:10:24 -05:00
Omar Roth 5a6b36ecce Add extra handling for year format 2018-08-05 18:35:52 -05:00
Omar Roth a29458e32f Allow 'host' header to be optional 2018-08-05 14:37:32 -05:00
Omar Roth b9315bc534 Major cleanup 2018-08-04 23:14:57 -05:00
Omar Roth 90d661e4a7 Split helpers.cr into multiple files 2018-08-04 15:30:44 -05:00