Skip to content

Commit e7a93fc

Browse files
committed
API: Replace any URL in HLS manifests
1 parent aa33d9b commit e7a93fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/routes/api/manifest.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module Invidious::Routes::API::Manifest
170170
manifest = response.body
171171

172172
if local
173-
manifest = manifest.gsub(/^https:\/\/\w+---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
173+
manifest = manifest.gsub(/https:\/\/[^\n"]*/m) do |match|
174174
uri = URI.parse(match)
175175
path = uri.path
176176

0 commit comments

Comments
 (0)