From 2c1400c41e3236b9aa9c84cf73d5864090d52af6 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 3 May 2025 22:28:19 +0200 Subject: [PATCH 1/3] Fix proxying live DASH streams (#4589) --- src/invidious/routes/video_playback.cr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr index b1c788c2..083087a9 100644 --- a/src/invidious/routes/video_playback.cr +++ b/src/invidious/routes/video_playback.cr @@ -21,7 +21,7 @@ module Invidious::Routes::VideoPlayback end # Sanity check, to avoid being used as an open proxy - if !host.matches?(/[\w-]+.googlevideo.com/) + if !host.matches?(/[\w-]+\.(?:googlevideo|c\.youtube)\.com/) return error_template(400, "Invalid \"host\" parameter.") end @@ -37,7 +37,8 @@ module Invidious::Routes::VideoPlayback # See: https://github.com/iv-org/invidious/issues/3302 range_header = env.request.headers["Range"]? - if range_header.nil? + sq = query_params["sq"]? + if range_header.nil? && sq.nil? range_for_head = query_params["range"]? || "0-640" headers["Range"] = "bytes=#{range_for_head}" end From 1f028fee0facfd51f1e2433ce808e2ea5198e2fd Mon Sep 17 00:00:00 2001 From: Vyquos <75266055+Vyquos@users.noreply.github.com> Date: Sun, 4 May 2025 07:47:42 +0000 Subject: [PATCH 2/3] Reflect companion secret character limit in example config comment (#5269) Update the comments in the example config to show that the companion secret key must be exactly 16 characters long as per https://github.com/iv-org/invidious-companion/pull/81#issuecomment-2750675405. --- config/config.example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.example.yml b/config/config.example.yml index d6119f29..8d3e6212 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -90,14 +90,14 @@ db: ## ## API key for Invidious companion, used for securing the communication ## between Invidious and Invidious companion. -## The size of the key needs to be more or equal to 16. +## The key needs to be exactly 16 characters long. ## ## Note: This parameter is mandatory when Invidious companion is enabled ## and should be a random string. ## Such random string can be generated on linux with the following ## command: `pwgen 16 1` ## -## Accepted values: a string +## Accepted values: a string (of length 16) ## Default: ## #invidious_companion_key: "CHANGE_ME!!" From d1bc15b8bffe7afad6000208dfe2cbd5601b4786 Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Sun, 4 May 2025 11:59:42 +0200 Subject: [PATCH 3/3] Release v2.20250504.0 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f84dc790..c0718686 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## vX.Y.0 (future) +## v2.20250504.0 + +Small release with quick workaround fix for issue #4251 (Nil assertion failed). + +PR: https://github.com/iv-org/invidious/issues/5263 + ## v2.20250314.0 ### Wrap-up