5541 Commits

Author SHA1 Message Date
Émilien (perso)
330208d5e7 fix: use puts + add warning for inv-sig-helper deprecated 2025-03-13 15:37:01 +00:00
Émilien (perso)
daac172712 chore: change from inv-sig-helper to companion for required playback 2025-03-13 14:16:03 +00:00
Emilien
e57ed1bb93 chore: remove baseurl usage from invidious companion 2025-03-13 13:57:18 +00:00
Emilien
a2e52bf23c fix: logic where we want to have the invidious logic if companion is not used 2025-03-13 13:57:18 +00:00
Emilien
7865f08d5f fix: don't use http proxy when sending requests to companion 2025-03-13 13:57:18 +00:00
Emilien
5f8ad34de4 add companion pooling http 2025-03-13 13:57:18 +00:00
Emilien
7d3c0903c9 missing , 2025-03-13 13:57:18 +00:00
Emilien
dcf1fb6f51 fixing format 2025-03-13 13:57:18 +00:00
Emilien
8f441a6b4e skip proxy for invidious companion 2025-03-13 13:57:18 +00:00
Emilien
6c3729f909 !empty? to present? 2025-03-13 13:57:18 +00:00
Émilien (perso)
df9d266539 Better doc for invidious_companion_key 2025-03-13 13:57:18 +00:00
Émilien (perso)
db0d826ab1 Better document private_url and public_url 2025-03-13 13:57:18 +00:00
Emilien
2383acd4e7 add ability for invidious companion to check request from invidious 2025-03-13 13:57:18 +00:00
Emilien
cb5c01b6c1 fix ameba Redundant use of Object#to_s in interpolation 2025-03-13 13:57:18 +00:00
Emilien
eeefc54acb format watch.cr 2025-03-13 13:57:18 +00:00
Emilien
00b3b0dbe8 apply all the suggestions + rework invidious_companion parameter 2025-03-13 13:57:18 +00:00
Emilien
5cc55d16f4 invidious companion always used so always add CSP and redirect latest_version 2025-03-13 13:57:18 +00:00
Emilien
73f2e92b01 fix linting 2025-03-13 13:57:18 +00:00
Emilien
06bfb69628 fix download function when invidious companion used 2025-03-13 13:57:18 +00:00
Emilien
6d1673bcc4 crystal handle decompression already by itself 2025-03-13 13:57:18 +00:00
Emilien
28cb88bbfb fix linting + use .empty? 2025-03-13 13:57:18 +00:00
Emilien
1d6ca9299d fixing "end" misplacement 2025-03-13 13:57:18 +00:00
Emilien
bf4c63aad6 separate invidious_companion logic + better config.yaml config 2025-03-13 13:57:18 +00:00
Emilien
9af5861d08 move config checks for invidious companion 2025-03-13 13:57:18 +00:00
Émilien (perso)
3b953048c9 modify the description for config.example.yaml about invidious companion 2025-03-13 13:57:18 +00:00
Émilien (perso)
f543f7326b Remove debug puts functions
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2025-03-13 13:57:18 +00:00
Émilien (perso)
bd227618a5 Use sample instead of Random.rand
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2025-03-13 13:57:17 +00:00
Emilien
c05c9d82ba throw error if inv_sig_helper and invidious_companion used same time 2025-03-13 13:57:17 +00:00
Emilien Devos
cf899e898e fixing condition for Content-Security-Policy 2025-03-13 13:57:17 +00:00
Emilien Devos
d2dd2e1bc8 fix Shadowing outer local variable response 2025-03-13 13:57:17 +00:00
Emilien Devos
3e7eedfe5a redirect latest_version and dash manifest to invidious companion 2025-03-13 13:57:17 +00:00
Emilien Devos
0760b31327 add support for invidious companion 2025-03-13 13:57:17 +00:00
syeopite
e23d0d13be
Add changelog for v2.20250314.0 (#5197)
* Release v2.20250314.0

* Update CHANGELOG.md
v2.20250314.0
2025-03-12 03:31:15 -07:00
syeopite
5c8b4eb379
Warn when po_token, visitor_data and/or inv-sig-helper is not configured (#5202)
* Warn when required configs for playback is missing

* Add link to documentation in warnings

* Direct users to /installation instead
2025-03-12 10:11:17 +01:00
syeopite
adcdb8cb92
Fix lint and formatting 2025-02-26 14:18:50 -08:00
syeopite
fe4fa0480a
Fix HLS being used for non-livestream videos (#5189)
Invidious does not currently support non-livestream hls playback

Originally, the HLS manifest check was essentially a boolean:
if the HLS manifest field was present, it was assumed to be a
livestream. Some videos include the HLS Manifest but aren't
livestreams.

In the case where they are livestreams, the video contains a videoType
field with the value "Livestream". In the case that they're normal
videos, the videoType is "Video". This is exposed via the
`video.live_now` property.

This commit just checks that `video.live_now` is true before treating
it as a livestream
2025-02-26 14:14:29 -08:00
syeopite
dbbcacc955
Images: fix typo in thumbnail logic 2025-02-26 14:13:58 -08:00
syeopite
58ad848d56
Channels: Support YouTube's change to from /community to /posts (#5183) 2025-02-26 14:13:22 -08:00
syeopite
f9b9e85ee4
Docker: Use Crystal compiler cache in docker builds (#5163)
Adding the compiler cache reduces the build times on repeated
builds significantly
2025-02-26 14:11:12 -08:00
syeopite
6ac74f4362
Videos: Fix empty response when rv published field is nonexistent (#5162)
Fixes #5161 by checking recommended videos published field for presence
before attempting to parse it in api
2025-02-26 14:09:28 -08:00
syeopite
9fbe3944b0
Channels: Add Courses to channel page and channel API (#5158)
Closes #5144
2025-02-26 14:08:44 -08:00
syeopite
c5e9447f41
Pick a different instance upon redirect (#5154)
The automatic instance redirection has the potential to pick
the same instance the user is currently on. This is especially
prevalent when the instance list is limited in number like how it is
today.

This PR checks the domain of the instance and ensures that it is not
the same as the current instane before redirecting the user to it.
Otherwise, it just sends the user to rediret.invidious.io
2025-02-26 14:05:21 -08:00
syeopite
3e329410d1
Add the ability to listen on UNIX sockets (#5112) 2025-02-26 14:04:29 -08:00
syeopite
74dfda150e
i18n: Enable Tamil 2025-02-26 14:02:57 -08:00
syeopite
e60f53154e
Translations update from Hosted Weblate (#4989) 2025-02-26 13:57:04 -08:00
syeopite
3d77635a5c
Add API endpoint for fetching transcripts from YouTube (#4788) 2025-02-26 13:56:39 -08:00
syeopite
d0433c8386
JS: Update timeupdate event defensive to prevent errors (#4782) 2025-02-26 13:56:13 -08:00
syeopite
4ea4878d1a
User: Batch notifications together 2025-02-26 13:55:25 -08:00
syeopite
1f0a89fb5f
RSS: Channel + Playlist improvements (#4298) 2025-02-26 13:55:01 -08:00
syeopite
f95f87e448
Frontend: Add a first page and previous page buttons for channel navigation (#4123) 2025-02-26 13:54:25 -08:00