diff --git a/src/invidious.cr b/src/invidious.cr index 4d7393409..402e89741 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/")