Commit graph

50 commits

Author SHA1 Message Date
Kavin
3e8098d105
Fix issues with skipping certain stream segments. 2023-11-28 02:54:02 +00:00
Kavin
2164f907ef
Add support for handling ump responses. 2023-11-27 23:54:55 +00:00
Kavin
496f58f81a
fix: Add support for generating qhash in rewritten manifests
Closes https://github.com/TeamPiped/Piped/issues/3162
2023-11-21 12:45:53 +00:00
Kavin
d72fb3c445
Include path in hash 2023-11-20 08:32:37 +00:00
Kavin
01697ebb86
Filter qhash query parameter. 2023-11-20 08:09:38 +00:00
Kavin
dfe87e0292
Fix clippy issue. 2023-11-20 08:05:47 +00:00
Kavin
2aa3053d34
Remove use of channel. 2023-11-20 05:21:46 +00:00
Kavin
2abd43bfb2
Make the hashing run on spawn_blocking. 2023-11-20 05:13:31 +00:00
Kavin
faafbcb737
Implement blake3 cryptographic hash verification for query string. 2023-11-20 05:13:31 +00:00
Jake Howard
031df8da4d
Let spawn_blocking handle returning its own value
This means one fewer thing to await on, and spin up inside a request. It _might_ be faster, who knows, but it can't hurt.
2023-11-18 16:32:28 +00:00
Bnyro
151b10775f refactor: properly check boolean env vars
Co-authored-by: Jeidnx <jeidnx@domainhier.de>
2023-10-20 16:14:35 +02:00
Kavin
bd9232d6c2
Small change and cargo fmt. 2023-10-10 02:08:05 +01:00
Kavin
57bac7177c
Fix compile issues. 2023-09-29 22:29:26 +01:00
Kavin
59eb2a1db8
Small code improvements. 2023-09-29 13:10:48 +01:00
Kavin
0edb727a03
Small code improvement, 2023-09-29 13:00:59 +01:00
Kavin
3d99bdd454
Fix image transcoding check. 2023-09-29 13:00:33 +01:00
chaos
70a167d34a
re-add compatibility with only UDS set 2023-09-27 21:41:09 +01:00
chaos
7789af5658
Reformat code 2023-09-27 21:40:54 +01:00
chaos
f3754b46cf
Allow more minimal cargo features, tidy code, allow setting unix domain socket filename 2023-09-27 21:40:47 +01:00
Kavin
0d4eda637d
Perform webp and avif conversion on blocking tasks. 2023-09-09 05:13:30 +01:00
Kavin
ef6250ba72
Fix compile issues. 2023-08-21 23:03:00 +01:00
Kavin
63953d283e
Add support for using proxies. 2023-08-21 22:56:18 +01:00
Kavin
5212b4213c
Turn webp rewriting into a feature flag. 2023-08-05 16:26:19 +01:00
Bnyro
b97632a387 cleanup query handling and domain validation 2023-08-04 11:32:29 +02:00
Kavin
1dd4afdb16
Add header value as bytes directly. 2023-07-19 03:12:02 +01:00
Kavin
401d1ba1fe
Add ajay.app to allowed domains
This is required for adding dearrow support currently.
2023-07-19 00:35:51 +01:00
Kavin
5c9311f654
Put avif behind a feature flag. 2023-07-13 11:46:17 +01:00
Kavin
477c412875
Reduce speed in avif encoding. 2023-07-13 11:17:10 +01:00
Kavin
85a4beeb54
Fix panicking issue. 2023-07-13 11:00:57 +01:00
Kavin
6b46efb100
Add avif re-encoding support. 2023-07-12 16:44:11 +01:00
Kavin
043cc36dfd
Use libwebp-sys crate directly. 2023-07-11 02:09:14 +01:00
Kavin
19bd7701ec
Bump UA as firefox froze them. 2023-06-09 19:39:06 +01:00
Kavin
6624254534
Spoof Android client properly. 2023-06-02 11:03:49 +01:00
Kavin
ab1f54bf51
Use the mimalloc allocator. 2023-05-23 04:03:52 +01:00
Kavin
6aeefc03e2
Optimize code to remove copy of query string. 2023-04-25 09:14:48 +01:00
Kavin
6dc1c6a896
Update FF UA. 2023-03-25 16:21:38 +00:00
Kavin
73717f6f37
Remove unnecessary non-capturing groups. 2023-03-25 15:53:25 +00:00
Kavin
86f5b67f2f
replace lazy_static with once_cell 2023-03-25 15:25:51 +00:00
Kavin
8bbda01e9c
Copy content-length header.
Closes #8
2023-02-28 17:54:48 +00:00
Kavin
e9c84fbb7b
Only match regex once. 2022-12-02 20:20:50 +00:00
Kavin
71cb04d028
Add parameter to disable rewriting. 2022-12-02 19:41:28 +00:00
Kavin
29874cfc09
Rewrite DASH manifests. 2022-11-18 19:29:55 +00:00
Kavin
567380d4aa
Use only one regex for domain matching. 2022-11-03 21:53:36 +00:00
Kavin
8755b0a76e
Simplify if unwrapping. 2022-11-03 21:53:03 +00:00
Kavin
fa345b493b
Fix for proxying LBRY HLS. 2022-11-02 21:47:20 +00:00
Kavin
dafafaf418
Add option to disable ipv6. 2022-11-02 20:43:17 +00:00
Kavin
f44df15206
Make clippy happy. 2022-11-02 20:34:14 +00:00
Kavin
44d1a0a053
Fix for query string not being passed. 2022-11-02 20:13:27 +00:00
Kavin
3ab1529ba7
Allow configuring listen options. 2022-11-02 18:42:12 +00:00
Kavin
cc3258a70c
Initial commit 2022-11-02 16:42:11 +00:00