Commit graph

124 commits

Author SHA1 Message Date
b51eff35fc
remove another console.log
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m17s
2025-03-17 16:44:31 -03:00
8f03166903
add missing user_agent for innertubeEmbeddedClient
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
2025-03-17 15:34:10 -03:00
f6604f42dd
remove token checking part to prevent crashes on banned ips
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m10s
2025-03-17 13:52:08 -03:00
27b67f6816
add missing tokenMinter argument 2025-03-17 13:51:12 -03:00
014fe86f6c
remove extra console.log
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s
2025-03-17 12:25:11 -03:00
2c5ea21300
re-add error checker
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m18s
2025-03-17 00:23:57 -03:00
3ddbd0c19e
Merge remote-tracking branch 'upstream/master' 2025-03-17 00:01:39 -03:00
90ab018db8
feat: add support for encrypted query parameters
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m18s
2025-03-16 21:37:45 -03:00
Alex Maras
5b6eb31145
Fix manifest and videoplayback proxy for Clipious and others (#63)
* fix: remove replaceAll("&", "&") from dash manifest

* feat: add 206 and content-range response on requests with a content-range header

* fix: skip breaking out dash in request bytes

* fix: range => bytes

* chore: improve checks for responses and move range header to be with related code
2025-03-16 22:47:21 +01:00
Alex Maras
8cf1a58c3e
support for Content PO Token using BGUtils, and PO token checks using real videos (#56)
* feat: initial support for Content PO Token using BGUtils

* fix: add canvas

* chore: remove unnecessary PO token replacement

* chore: remove unnecessary canvas addition

* fix: missing semi-colon in hono variables

* chore: fix deno.lock

* set enable_session_cache to false on all Innertube instances

* comment and log about the botguard Not Implemented canvas issue

* chore: adapt message about error Not implemented

* chore: update deno.lock

* fix: use passed fetch implementation consistently in potoken job

* feat: add check to ensure a random video loads when generating PO token, retry if it fails

* chore: update deno.lock

* fix: replace youtubePlayerParsing arguments with destructured object and allow cache overrides

* chore: deno fmt

* chore: reuse cacheEnabled variable

* chore: swap to ternary for clarity

* chore: deno fmt

* fix: update to new youtubePlayerParsing parameter shape

---------

Co-authored-by: Emilien <4016501+unixfox@users.noreply.github.com>
2025-03-16 16:06:39 +01:00
syeopite
865c22e1fd
Add typing to caption api logic (#62) 2025-03-16 15:58:19 +01:00
Émilien (perso)
cdf93feb25
chore: remove base_url sending (#61) 2025-03-08 23:46:24 +01:00
Emilien
19cc0f6f17 fix: deno formatting 2025-03-08 23:44:13 +01:00
Emilien
f4d15314e4 chore: ignoring a lot of type checking from merging PR #55 2025-03-08 19:54:38 +01:00
Emilien
bddb450d2c add step for deno check 2025-03-08 19:30:28 +01:00
syeopite
a6e758cd64
Add support for Invidious captions endpoint (#55)
* Add basic skeletons for Invidious captions api

* Add logic to fetch and convert transcripts to vtt

* Use transcripts logic in captions route

* Format

* Fix lint
2025-03-08 18:11:58 +01:00
f266edfedb
fix: add support for sensitive content videos
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m19s
2025-03-07 00:31:14 -03:00
4a21526be1
feat: disallow access to /videoplayback if an external videoplayback proxy has been defined
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2s
2025-03-02 21:17:45 -03:00
59fdecf3c7
fix: Replace c.text by c.body to prevent Content-Type header being rewriten (#58)
`c.text` sets the Content-Type to `text/plain; charset=UTF-8` regardless
of the value set by `c.header()`. Using c.body prevents that from happening.
2025-03-02 23:12:12 +01:00
5c8a975a04
dockerfile: replace built-in healthcheck with tiny-health-checker for container healthchecks (#54)
* Revert "Add Image healthcheck. (#48)"

This reverts commit f7c81687b5.

* dockerfile: replace built-in healthcheck with tiny-health-checker for healthchecks

* dockerfile: support for ARM64 builds of thc
2025-03-02 23:11:02 +01:00
Emilien
a68c27dcdd chore: update deno.lock 2025-03-02 11:06:33 +01:00
9e38fe1327
fix: Replace c.text by c.body to prevent Content-Type header being rewriten
`c.text` sets the Content-Type to `text/plain; charset=UTF-8` regardless
of the value set by `c.header()`. Using c.body prevents that from happening.
2025-03-01 19:48:18 -03:00
34c9df22e7
fixup! add support for an external videoplayback proxy
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s
2025-02-28 18:20:02 -03:00
9512877ff2
feat: publish videoplayback proxy location on /info
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m17s
2025-02-28 18:07:04 -03:00
Emilien
f37f2e32be fix: update dependencies locking file
fixes #50
2025-02-24 09:47:05 +01:00
9ff358c364
chore: update deno.lock
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
2025-02-24 02:53:14 -03:00
482ba815ad
Revert "fix: override player function to set player_id to 7795af42 (retarded fix but works better than anything else)"
This reverts commit 001e2de64c.
2025-02-24 02:50:54 -03:00
06cb1e10b0
dockerfile: disable healthcheck due to high allocation of resources on each healthcheck call
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m16s
https://github.com/iv-org/invidious-companion/issues/24#issuecomment-2677141666
2025-02-23 19:13:05 -03:00
2a37c1fe53
Revert "make use of SSL certificates"
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m23s
This reverts commit e39797cf49.

HTTPS on deno is not bad, but if you are handling a lot of connections, you are better off using a well tested reverse proxy like haproxy and nginx. They are more efficient at handling HTTPS traffic.
2025-02-23 16:58:28 -03:00
24eafee3e9
Merge remote-tracking branch 'upstream/master' 2025-02-23 16:54:01 -03:00
Alex Maras
598c7177ea
Chore: Clean up Hono types (#53)
* Chore: Clean up Hono types

Hono context variables can be typed by setting ContextVariableMap in the
'hono' module. This allows the type-checks to be cleaner and simpler,
and to not require ts overrides

c.get also isn't async, so doesn't need to be awaited

* chore: fmt
2025-02-22 14:42:18 +01:00
Emilien
4191cb8452 update to youtube.js 13.1.0
fixes #50
2025-02-22 00:07:00 +01:00
949ebe9b9e
chore: update deno.lock 2025-02-21 17:14:30 -03:00
001e2de64c
fix: override player function to set player_id to 7795af42 (retarded fix but works better than anything else) 2025-02-21 17:14:28 -03:00
6654ed2a99
chore: update youtube.js to 13.0.0 2025-02-21 17:14:00 -03:00
367d62134b
perf: remove this cache calculation bullshit, uses too much CPU 2025-02-21 17:14:00 -03:00
7fa4083f35
ci: update deno to v2.1.10 2025-02-21 17:14:00 -03:00
a481527257
feat: retry on fail, move metrics 2025-02-21 17:14:00 -03:00
f7c81687b5
Add Image healthcheck. (#48)
* add support for `health` argument

* add healthcheck to the image file
2025-02-19 16:27:31 +01:00
Alex Maras
3574d91d9f
feat: timeout and retry fetches in proxy (#45)
* feat: timeout and retry fetches in proxy

* chore: fmt

* feat: move fetch changes to a shim in getFetchClient

* chore: fmt

* chore: remove unused import

* chore: fetch => globalThis.fetch

* chore: remove redundant use of async/await in promise-returning function

* feat: add initial configuration checks

* fix: use RequestInit directly

* fix: use networking subsection with kongfigStore

* chore: update fetch_timeout configuration value to fetch_timeout_ms
2025-02-19 16:26:10 +01:00
d32574db8a
ci: fix Deno stack overflow 2025-02-03 18:06:42 -03:00
62acf0f923
ci: update ci files 2025-02-03 16:58:48 -03:00
ff76e97853
chore: update default.toml file 2025-02-03 16:58:47 -03:00
77a86d4f88
style: run deno fmt 2025-02-03 16:58:47 -03:00
9de6fdc399
feat: add env variable for frequency_seconds 2025-02-03 16:58:47 -03:00
6b83617fcb
refactor: move proxy rotator logic outside of getFetchClient 2025-02-03 16:58:47 -03:00
55df6e6692
feat: add env variable for verify_requests 2025-02-03 16:58:47 -03:00
6c6345fe03
chore: update Deno to 2.1.9 in Dockerfile 2025-02-03 16:58:47 -03:00
ac0a02d184
Merge remote-tracking branch 'upstream/master'
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m23s
2025-01-28 19:33:41 -03:00
734b81590b
feat(proxy): Add support for rotating proxies
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m41s
2025-01-28 18:35:58 -03:00