1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-09-19 18:57:30 +00:00
Commit Graph

70 Commits

Author SHA1 Message Date
Cadence Ember
0d23d66700 Add theme support, light theme, and edgeless light 2021-12-28 16:32:11 +13:00
Cadence Ember
b9f703086f
Implement takedown system 2021-11-20 19:42:34 +13:00
Cadence Ember
741a1199dd
Sort formats from Invidious extractor correctly 2021-11-05 16:13:40 +13:00
Cadence Ember
55065e2a9e
11x speed up of subscription page generation
My 30 subscriptions now take 25 ms to generate, instead of around 280.

Around 120 ms were saved by creating a database index.
Around 120 ms were saved by pre-compiling the pug template for video
description timestamps.
The other changes in this commit produced slight improvements.
2021-08-26 23:47:53 +12:00
Cadence Ember
0aa0505009
Keep subscriptions in database if channel deleted 2021-08-23 23:43:23 +12:00
Cadence Ember
739f537bc7
Setting to alter recommended videos display 2021-08-16 22:37:12 +12:00
eb111a44c4
Proxy captions via new /proxy route
We can add more authorized paths to authorizedPaths if we need
more resources to be pulled from the NewLeaf/Invidious backend
on the same domain.

This route forwards to the client a few headers like Bibliogram
https://git.sr.ht/~cadence/bibliogram/tree/ea7cd5d5/item/src/site/api/proxy.js#L28-29
so we can also use this route to possibly proxy videos in the
future.

We are strict about the url parameter not overriding the
NewLeaf/Invidious backend (instanceOrigin) by ensuring
fetchURL has instanceOrigin as prefix.
2021-05-25 00:04:32 +12:00
Cadence Ember
cebc4331bc
Correctly set filter referrer everywhere 2021-05-12 00:43:53 +12:00
Cadence Ember
db7ccabb3b
Implement video filters 2021-05-12 00:29:44 +12:00
Cadence Ember
ec9b0edadc
Make VSCode type detection happier 2021-05-11 21:58:41 +12:00
Cadence Ember
c811a4aaf9
Fix ?t start time parameter on videos 2021-05-02 00:59:28 +12:00
Cadence Ember
81a4d10474
Refactor video access route
- Move errors to separate files instead of embedding
- Consistent interface for error generation
- Move renderVideo function into route
- Fix unhandled FetchError regression from dbbe950
2021-04-28 00:56:00 +12:00
8292c8db57
Fix #14 implement video autoplay with URL parameter
Fixes https://todo.sr.ht/~cadence/tube/14
2021-04-28 00:01:55 +12:00
Cadence Ember
2b2f8bf84a
Implement continuous mode 2021-04-26 00:06:35 +12:00
Cadence Ember
49d32cfee2
Delete existing watch history when disabled 2021-04-26 00:00:56 +12:00
Cadence Ember
699af63583
Update "preferred quality" setting
- Re-order the options on the settings page
- "best" and "best <= 1080p" now prefer high-fps
2021-04-25 22:19:06 +12:00
Cadence Ember
6f8e03e506
Add JavaScript licenses page 2021-04-16 16:31:54 +12:00
Cadence Ember
48534d4e29
Rewrite URLs in subscription feed 2021-04-14 23:02:05 +12:00
Cadence Ember
848651757a
Autofocus search if user-agent not a mobile device 2021-04-10 01:05:31 +12:00
Cadence Ember
431767437d
Support NewLeaf's auto-captions 2021-04-05 01:25:58 +12:00
500aa820bc
Implement video captions
Proxy requests to NewLeaf/Invidious backend so captions are served on the
same domain
2021-04-05 01:25:58 +12:00
dbbe950832
Refactor video fetcher to prefetch data 2021-04-05 01:25:34 +12:00
Cadence Ember
ac3de4b4e6
Implement preferred quality selection
The list is subject to change as I collect more feedback. I just want
to get this initial change out for everyone to use and appreciate.
2021-04-04 16:51:39 +12:00
Cadence Ember
fd854ec222
Refactor instance list fetcher 2021-03-01 23:35:09 +13:00
Cadence Ember
3dbea65c62
Rename Second to NewLeaf 2021-02-27 13:11:27 +13:00
Cadence Ember
9da30868ef
Update timestamp code
- Safer, uses pug for rendering with guaranteed escapes
- Includes data-timestamp attribute for JavaScript progressive
  enhancement later on
2021-02-25 00:49:26 +13:00
406e04b7b0
Rewrite youtube.com links to the same instance and implement timestamp links in videos description 2021-02-25 00:16:33 +13:00
Cadence Ember
2f2cebfc7d
Support /e/ redirection 2021-02-22 23:33:32 +13:00
Cadence Ember
cfe5209531
Add redirects for /watch/, /w/, /v/, /shorts/ 2021-02-19 01:56:03 +13:00
bopol
6186be0a13
fallback to number if text format is not available for counts
e.g. subscriber count, view count
2021-02-12 01:47:52 +13:00
Cadence Ember
e279fca60e
Add comment explaining redirect method 2021-02-12 00:42:28 +13:00
4332d3043f
Fix redirected youtu.be/ID shortlinks parameters ordering
Previouly, /[ID]?autoplay=1&test1&test2 would redirect to /watch?autoplay=1&test1=&test2=&v=[ID]
which is kind of ugly, and not how YouTube redirects youtu.be shortlinks.
This is now redirecting to /watch?v=[ID]&autoplay=1&test1=&test2
2021-02-12 00:37:18 +13:00
Cadence Ember
c6363424cb
Strip trailing slash from instance 2021-02-06 19:56:50 +13:00
Cadence Ember
ebdc88fe4c
Fix media fragments in local mode 2021-02-03 21:04:48 +13:00
Cadence Ember
d50e07f053
Preserve other parameters in video redirection 2021-02-03 20:58:51 +13:00
Cadence Ember
722842b0b4
Support youtu.be redirection 2021-02-03 20:49:21 +13:00
Cadence Ember
1d80e627af
Support fancy blocked page with Invidious 2021-01-14 22:48:45 +13:00
Cadence Ember
52aa158613
Fix format order from Invidious 2021-01-14 22:48:25 +13:00
Cadence Ember
c83bdcb924
Tip: Don't code at 1 AM
- Remove console.log
- Default value for render video locals
2021-01-14 01:49:26 +13:00
Cadence Ember
bb4816c4b3
Support t parameter using media fragments 2021-01-14 00:58:29 +13:00
Cadence Ember
36f33b9f7e
General code cleanup from analysis 2021-01-14 00:55:03 +13:00
Cadence Ember
806494f5e0
Fetch instance list from instances.invidio.us 2021-01-13 23:48:18 +13:00
Cadence Ember
98ee77def4
Set user-agent for invidious.snopyta ID 2021-01-12 23:49:00 +13:00
Cadence Ember
c419aa90da
Normalise info for both channels and search 2021-01-12 14:54:36 +13:00
Cadence Ember
ac28332ac0
Add "mark watched" button to subscriptions page 2021-01-09 14:09:59 +13:00
Cadence Ember
4e7b57db4c
Fix new session creation 2021-01-09 01:49:22 +13:00
Cadence Ember
c15f83f899
Normalise display data on search across APIs 2021-01-01 17:30:59 +13:00
Cadence Ember
0da13ac0e6
Use preferred instance for search 2021-01-01 17:15:02 +13:00
Cadence Ember
637f648fc7
Show watched state on channel videos 2020-12-29 23:07:23 +13:00
Cadence Ember
2faaa2e18b
Allow data syncing and deletion 2020-12-29 16:21:48 +13:00