From a279d6f4331effbf7327a2e3c90a937223656c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Thu, 26 Aug 2021 21:02:26 +0000 Subject: [PATCH] Fix livestream parsing URLs (#2356) --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 4d739340..402e8974 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -3150,7 +3150,7 @@ get "/api/manifest/hls_playlist/*" do |env| manifest = response.body if local - manifest = manifest.gsub(/^https:\/\/r\d---.{11}\.c\.youtube\.com[^\n]*/m) do |match| + manifest = manifest.gsub(/^https:\/\/\w+---.{11}\.c\.youtube\.com[^\n]*/m) do |match| path = URI.parse(match).path path = path.lchop("/videoplayback/")